Ejemplo n.º 1
0
 //Removes the handler from the composition
 public void Delete(IAlarmHandler handler)
 {
     foreach (var key in _handlers.Keys)
     {
         _handlers[key].Remove(handler);
     }
 }
Ejemplo n.º 2
0
        //Adds the handler to the composition
        public void Add(IAlarmHandler handler, SurveillanceMonitorConfig.SurveillanceMonitorCamera camera)
        {
            if (!_handlers.ContainsKey(camera.Id))
            {
                _handlers.Add(camera.Id, new List <IAlarmHandler>());
            }

            _handlers[camera.Id].Add(handler);
        }
Ejemplo n.º 3
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmImmediate(this, 1f, TimeUnit.Hours));
 }
Ejemplo n.º 4
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmDay(this, 9));
 }
Ejemplo n.º 5
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmDay(this, 0f, ~DaysOfTheWeek.None));
 }
Ejemplo n.º 6
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return alarms.AddAlarm(this, 1);
 }
Ejemplo n.º 7
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmDay(this, PromSituation.kTimeOfEventAnnouncement));
 }
Ejemplo n.º 8
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmDay(this, LotManager.kVenueCleanupTime, ~DaysOfTheWeek.None));
 }
Ejemplo n.º 9
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarm(this, 1f, TimeUnit.Minutes));
 }
Ejemplo n.º 10
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmDelayed(this, GetValue <OptionV2, int>(), TimeUnit.Minutes));
 }
Ejemplo n.º 11
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmDelayed(this, 0.5f, TimeUnit.Hours));
 }
Ejemplo n.º 12
0
        public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
        {
            AlarmData.Alarm = alarms.AddAlarm(this, GetTime());

            return(AlarmData.Alarm);
        }
Ejemplo n.º 13
0
 public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
 {
     return(alarms.AddAlarmDay(this, 0.01f, GetValue <TaxDaysOption, DaysOfTheWeek>()));
 }
Ejemplo n.º 14
0
        public AlarmManagerReference SetupAlarm(IAlarmHandler alarms)
        {
            AlarmData.Alarm = alarms.AddAlarm(this, GetTime());

            return AlarmData.Alarm;
        }