Exemplo n.º 1
0
 private void InitMisc()
 {
     countresults         = new CountingResults();
     cycles               = new CycleList();
     Messages             = new AnalysisMessages();
     cyclestatus          = new MeasurementCycleStatusCounts();
     INCCResultsFileNames = new List <string>();
 }
Exemplo n.º 2
0
        private void InitMisc()
        {
            if (MeasDate == null)
            {
                MeasDate = new DateTimeOffset(DateTime.Now);
            }


            countresults = new CountingResults();
            cycles       = new CycleList();
            Messages     = new AnalysisMessages();
            cyclestatus  = new MeasurementCycleStatusCounts();
            ResultsFiles = new ResultFiles();
        }
Exemplo n.º 3
0
 /// <summary>
 /// Add the list of prepared cycles to this measurement's cycle list.
 /// Expected use is during database-driven measurements reconstruction
 /// </summary>
 /// <param name="cl">list of cycles</param>
 /// <param name="init">if true, reset related measurement attributes, e.g. requested repetitions</param>
 public void Add(CycleList cl, bool init = true)
 {
     cycles.AddRange(cl);
     if (init)
     {
         CurrentRepetition    = 0;
         RequestedRepetitions = (ushort)cycles.Count;
         FirstCycle           = true; // used by outlier test
         if (cycles.Count > 0)
         {
             AcquireState.run_count_time = cycles[0].TS.TotalSeconds;
         }
     }
     else if (cycles.Count > 0) // adjust sequence numbers
     {
         int lastseq = cycles[cycles.Count - 1].seq;
         foreach (Cycle c in cl)
         {
             c.seq += lastseq;
         }
     }
 }