/// <summary> /// Inits the object.<br/> /// </summary> public void Init(Pinball Pinball) { AlarmStatistics = new TimeSpanStatisticsItem() { Name = "Alarm calls", GroupName = "Pinball - Alarm calls" }; Pinball.TimeSpanStatistics.Add(AlarmStatistics); IntervalAlarmStatistics = new TimeSpanStatisticsItem() { Name = "Interval Alarm calls", GroupName = "Pinball - Alarm calls" }; Pinball.TimeSpanStatistics.Add(IntervalAlarmStatistics); }
public TimeSpanStatisticsDetails(TimeSpanStatisticsItem TimeSpanStatisticsItem) { InitializeComponent(); this.TimeSpanStatisticsItem = TimeSpanStatisticsItem; ShowData(); }
private void InitStatistics() { Log.Debug("Initializing table element statistics"); TimeSpanStatisticsItem TSI; TimeSpanStatistics = new TimeSpanStatisticsList(); TableElementCallStatistics = new Dictionary<TableElementTypeEnum, TimeSpanStatisticsItem>(); foreach (TableElementTypeEnum T in Enum.GetValues(typeof(TableElementTypeEnum))) { TSI = new TimeSpanStatisticsItem() { Name = "{0}".Build(T.ToString()), GroupName = "Pinball - Table element update calls" }; TableElementCallStatistics.Add(T, TSI); TimeSpanStatistics.Add(TSI); } Log.Debug("Table element statistics initialized"); }
public void Finish() { TerminatePacLed64UpdaterThread(); ShutdownLighting(); this.Pinball = null; UpdateTimeStatistics = null; PWMUpdateTimeStatistics = null; }
public void Init(Cabinet Cabinet) { this.Pinball = Cabinet.Pinball; if (!Pinball.TimeSpanStatistics.Contains("PacLed64 {0:0} update calls".Build(Id))) { UpdateTimeStatistics = new TimeSpanStatisticsItem() { Name = "PacLed64 {0:0} update calls".Build(Id), GroupName = "OutputControllers - PacLed64" }; Pinball.TimeSpanStatistics.Add(UpdateTimeStatistics); } else { UpdateTimeStatistics = Pinball.TimeSpanStatistics["PacLed64 {0:0} update calls".Build(Id)]; } if (!Pinball.TimeSpanStatistics.Contains("PacLed64 {0:0} PWM updates".Build(Id))) { PWMUpdateTimeStatistics = new TimeSpanStatisticsItem() { Name = "PacLed64 {0:0} PWM updates".Build(Id), GroupName = "OutputControllers - PacLed64" }; Pinball.TimeSpanStatistics.Add(PWMUpdateTimeStatistics); } else { PWMUpdateTimeStatistics = Pinball.TimeSpanStatistics["PacLed64 {0:0} PWM updates".Build(Id)]; } if (!Pinball.TimeSpanStatistics.Contains("PacLed64 {0:0} OnOff updates".Build(Id))) { OnOffUpdateTimeStatistics = new TimeSpanStatisticsItem() { Name = "PacLed64 {0:0} OnOff updates".Build(Id), GroupName = "OutputControllers - PacLed64" }; Pinball.TimeSpanStatistics.Add(OnOffUpdateTimeStatistics); } else { OnOffUpdateTimeStatistics = Pinball.TimeSpanStatistics["PacLed64 {0:0} OnOff updates".Build(Id)]; } StartPacLed64UpdaterThread(); }
public void Init(Cabinet Cabinet) { this.Pinball = Cabinet.Pinball; if (!Pinball.TimeSpanStatistics.Contains("LedWiz {0:00} update calls".Build(Number))) { UpdateTimeStatistics = new TimeSpanStatisticsItem() { Name = "LedWiz {0:00} update calls".Build(Number), GroupName = "OutputControllers - LedWiz" }; Pinball.TimeSpanStatistics.Add(UpdateTimeStatistics); } else { UpdateTimeStatistics = Pinball.TimeSpanStatistics["LedWiz {0:00} update calls".Build(Number)]; } if (!Pinball.TimeSpanStatistics.Contains("LedWiz {0:00} PWM updates".Build(Number))) { PWMUpdateTimeStatistics = new TimeSpanStatisticsItem() { Name = "LedWiz {0:00} PWM updates".Build(Number), GroupName = "OutputControllers - LedWiz" }; Pinball.TimeSpanStatistics.Add(PWMUpdateTimeStatistics); } else { PWMUpdateTimeStatistics = Pinball.TimeSpanStatistics["LedWiz {0:00} PWM updates".Build(Number)]; } if (!Pinball.TimeSpanStatistics.Contains("LedWiz {0:00} OnOff updates".Build(Number))) { OnOffUpdateTimeStatistics = new TimeSpanStatisticsItem() { Name = "LedWiz {0:00} OnOff updates".Build(Number), GroupName = "OutputControllers - LedWiz" }; Pinball.TimeSpanStatistics.Add(OnOffUpdateTimeStatistics); } else { OnOffUpdateTimeStatistics = Pinball.TimeSpanStatistics["LedWiz {0:00} OnOff updates".Build(Number)]; } StartLedWizUpdaterThread(); }