예제 #1
0
 /// <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();
 }
예제 #3
0
        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");

        }
예제 #4
0
            public void Finish()
            {

                TerminatePacLed64UpdaterThread();
                ShutdownLighting();
                this.Pinball = null;
                UpdateTimeStatistics = null;
                PWMUpdateTimeStatistics = null;
            }
예제 #5
0
 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();
 }
예제 #6
0
 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();
 }