Exemple #1
0
        private void Start()
        {
            if (string.IsNullOrEmpty(WorkingDir))
            {
                ShowError("Please load the IDA file");
                Thread.CurrentThread.Abort();
            }
            double maxClpsRsltn    = 0;
            double tetaLimit       = 0;
            double slopeRatioLimit = 0;
            double im0             = 0;
            double step0           = 0;
            double stepIncr        = 0;
            int    maxPnts         = 0;

            try
            {
                maxClpsRsltn    = Convert.ToDouble(ClpsRsltnBox.Text);
                tetaLimit       = Convert.ToDouble(TetaLimitBox.Text);
                slopeRatioLimit = Convert.ToDouble(SlopeLimitBox.Text);
                im0             = Convert.ToDouble(Im0Box.Text);
                step0           = Convert.ToDouble(Step0Box.Text);
                stepIncr        = Convert.ToDouble(DeltaStepBox.Text);
                maxPnts         = Convert.ToInt16(NumIdaPntsBox.Text);
            }
            catch
            {
                ShowError("Error reading IDA settings. Please check input values");
                Thread.CurrentThread.Abort();
            }
            TheTracer = new HuntFillTracer
            {
                MaxClpsRsltn    = maxClpsRsltn,
                TetaLimit       = tetaLimit,
                SlopeRatioLimit = slopeRatioLimit,
                Im0             = im0,
                Step0           = step0,
                StepIncr        = stepIncr,
                MaxIdaPnts      = maxPnts
            };

            NumAllRecs = 0;
            try
            {
                NumAllRecs = Convert.ToInt16(NumRecsBox.Text);
            }
            catch
            {
                ShowError("Error reading IDA settings. Please check input values");
                Thread.CurrentThread.Abort();
            }
            AllRecordsList = new List <string>(NumAllRecs);
            for (var i = 1; i <= NumAllRecs; i++)
            {
                AllRecordsList.Add(string.Format("{0}", i));
            }

            JobManager.LoadProject(ProjectFile);
            JobManager.PopulateActiveIdas();
            JobManager.PopulatePool();
            ClientManager.ListenToAny();
            //ClientManager.StartHandling();
            //Logger.Close();
        }
Exemple #2
0
 public IdaJob(string folder, string model, string rec, ParallelTracer tracer)
     : base(folder, model, rec)
 {
     _theTracer = tracer.GetCopy();
     NWorkers   = 1;
 }