private void InitMisc() { countresults = new CountingResults(); cycles = new CycleList(); Messages = new AnalysisMessages(); cyclestatus = new MeasurementCycleStatusCounts(); INCCResultsFileNames = new List <string>(); }
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(); }
/// <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; } } }