Esempio n. 1
0
 def __init__(self):
     Exporter.__init__(self)
     EventConsumerMixin.__init__(self, self.handle_connected,
                                 self.connection_event_error)
     self.running = 0
     self._scheduled = None
     self._lock = Lock()
 def __init__(self, *args, **kw):
     DefaultTestFixture.__init__(self, *args,**kw)
     EventConsumerMixin.__init__(self, self.change_of_value)
     self.__event_lock = Lock()
     self.__event_updated_values = {}
     self._cov_counter = 0
     return
 def __init__(self, *args, **kw):
     DefaultTestFixture.__init__(self, *args, **kw)
     EventConsumerMixin.__init__(self, self.change_of_value)
     self.__event_lock = Lock()
     self.__event_updated_values = {}
     self._cov_counter = 0
     return
Esempio n. 4
0
 def __init__(self):
     CompositeNode.__init__(self)
     EventConsumerMixin.__init__(self, self._cov_event_handler)
     self._smid = None
     self._last_value = None
     self.link = None #url of bacnet schedule object
     self.source = 'broadway' #or 'bacnet'
     self._bacnet_datatype = 'auto'
     pass
Esempio n. 5
0
 def __init__(self):
     CompositeNode.__init__(self)
     EventConsumerMixin.__init__(self, self._cov_event_handler)
     self._smid = None
     self._last_value = None
     self.link = None  #url of bacnet schedule object
     self.source = 'broadway'  #or 'bacnet'
     self._bacnet_datatype = 'auto'
     pass
Esempio n. 6
0
 def __init__(self):
     ConfigurableNode.__init__(self)
     EventProducerMixin.__init__(self)
     EventConsumerMixin.__init__(self)
     self._current_id = None
     self._event_class = None
     self.start_counter = 0
     self.pnode_obj = None
     self.pnode_subscribed = 0
Esempio n. 7
0
 def __init__(self):
     ServiceNode.__init__(self)
     EventConsumerMixin.__init__(self, self.handle_alarm, \
                                 self.handle_exception)
     self.__running = 0
     self.__queue = Queue()
     self._id_manager = None
     self._dynamic_alarms = {}
     return
Esempio n. 8
0
 def __init__(self):
     ConfigurableNode.__init__(self)
     EventProducerMixin.__init__(self)
     EventConsumerMixin.__init__(self)
     self._current_id = None
     self._event_class = None
     self.start_counter = 0
     self.pnode_obj = None
     self.pnode_subscribed = 0
Esempio n. 9
0
 def __init__(self):
     ServiceNode.__init__(self)
     EventConsumerMixin.__init__(self, self.handle_alarm, \
                                 self.handle_exception)
     self.__running = 0
     self.__queue = Queue()
     self._id_manager = None
     self._dynamic_alarms = {}
     return
Esempio n. 10
0
 def __init__(self):
     self.__server = None
     self.__sched_lock = Lock()
     self.__sched_thread = None
     self.__schedules = Queue()
     self.__pv = None
     super(LightingGroup, self).__init__()
     EventConsumerMixin.__init__(self, self._sched_update,
                                 self._sched_exception)
     return
Esempio n. 11
0
 def __init__(self):
     self.function = None
     self._calculator = None
     self.__node = None
     self.__node_url = None
     self.__lock = Lock()
     self.__started = 0
     self._sid = None
     self._present_value = None
     Column.__init__(self)
     EventConsumerMixin.__init__(self, self.change_of_value)
Esempio n. 12
0
 def __init__(self):
     self.function = None
     self._calculator = None
     self.__node = None
     self.__node_url = None
     self.__lock = Lock()
     self.__started = 0
     self._sid = None
     self._present_value = None
     Column.__init__(self)
     EventConsumerMixin.__init__(self, self.change_of_value)
Esempio n. 13
0
 def __init__(self,*args, **kw):
     super(ScheduleManager, self).__init__(*args, **kw)
     EventProducerMixin.__init__(self)
     EventConsumerMixin.__init__(self, self.event_handler)
     self.remotes_loaded = False
     self.__running = False
     self._hm = None
     self._ctlsvc = None
     self._hm_scheduled = None
     self._ph_scheduled = None
     self._ph_loader_scheduled = None
     self._ph_loaded = False
     self.__last_pruned = None
     self._proxied_manager = _ProxiedScheduleManager(self)
     self.__legacy_schedules = []
     self.__legacy_needs_pruning = []
     self.__ph_legacy_needs_pruning = []
Esempio n. 14
0
 def __init__(self, *args, **kw):
     super(ScheduleManager, self).__init__(*args, **kw)
     EventProducerMixin.__init__(self)
     EventConsumerMixin.__init__(self, self.event_handler)
     self.remotes_loaded = False
     self.__running = False
     self._hm = None
     self._ctlsvc = None
     self._hm_scheduled = None
     self._ph_scheduled = None
     self._ph_loader_scheduled = None
     self._ph_loaded = False
     self.__last_pruned = None
     self._proxied_manager = _ProxiedScheduleManager(self)
     self.__legacy_schedules = []
     self.__legacy_needs_pruning = []
     self.__ph_legacy_needs_pruning = []
Esempio n. 15
0
 def __init__(self):
     self._link = None #get 'actual' node
     self.link = None
     self._proxy_get = None #set to actual's preferred get method
     self._proxy_set = None
     self._proxy_start_exception = None
     self._proxy_sid = None
     self.proxy_direction = GET_ONLY #direction subscription "pushes" the data
     self._proxy_active_source = None
     self._proxy_active_destination = None
     self._proxy_active_lock = Lock()
     self._proxy_active_thread_lock = Lock()
     self._proxy_active_event = None
     self._proxy_trigger_counter = 0
     self._retry_win_high = 30
     EventConsumerMixin.__init__(self, self.change_of_value)
     self.debug = debug
Esempio n. 16
0
 def __init__(self):
     self._link = None  #get 'actual' node
     self.link = None
     self._proxy_get = None  #set to actual's preferred get method
     self._proxy_set = None
     self._proxy_start_exception = None
     self._proxy_sid = None
     self.proxy_direction = GET_ONLY  #direction subscription "pushes" the data
     self._proxy_active_source = None
     self._proxy_active_destination = None
     self._proxy_active_lock = Lock()
     self._proxy_active_thread_lock = Lock()
     self._proxy_active_event = None
     self._proxy_trigger_counter = 0
     self._retry_win_high = 30
     EventConsumerMixin.__init__(self, self.change_of_value)
     self.debug = debug
 def __init__(self):
     EventConsumerMixin.__init__(self, self.__print_on_cov)
     return
Esempio n. 18
0
 def __init__(self):
     CompositeNode.__init__(self)
     EventConsumerMixin.__init__(self, self._handle_event,
                                 self._handle_exception)
     self._event_handlers = {}  # map of event class to handler method
     self._running = 0
Esempio n. 19
0
 def __init__(self):
     self._last_alarm = None
     self._started = 0
     CompositeNode.__init__(self)
     EventConsumerMixin.__init__(self,self._alarm_triggered)
Esempio n. 20
0
 def __init__(self):
     self.running = 0
     self.log = None
     Exporter.__init__(self)
     EventConsumerMixin.__init__(self,self.handle_entry,self.handle_error)
Esempio n. 21
0
 def __init__(self):
     self.running = 0
     self.log = None
     Exporter.__init__(self)
     EventConsumerMixin.__init__(self, self.handle_entry, self.handle_error)
 def __init__(self):
     EventConsumerMixin.__init__(self, self.__print_on_cov)
     return
Esempio n. 23
0
 def __init__(self):
     self._last_alarm = None
     self._started = 0
     CompositeNode.__init__(self)
     EventConsumerMixin.__init__(self, self._alarm_triggered)
Esempio n. 24
0
 def __init__(self):
     self.running = 0
     self._lock = Lock()
     Exporter.__init__(self)
     EventConsumerMixin.__init__(self,self.handle_log,self.handle_error)
Esempio n. 25
0
 def __init__(self):
     CompositeNode.__init__(self)
     EventConsumerMixin.__init__(self,self._handle_event,
                                 self._handle_exception)
Esempio n. 26
0
 def __init__(self):
     CompositeNode.__init__(self)
     EventConsumerMixin.__init__(self, self._handle_event,
                                 self._handle_exception)
Esempio n. 27
0
 def __init__(self):
     CompositeNode.__init__(self)
     EventConsumerMixin.__init__(self, self._handle_event, self._handle_exception)
     self._event_handlers = {}  # map of event class to handler method
     self._running = 0
Esempio n. 28
0
 def __init__(self):
     Exporter.__init__(self)
     EventConsumerMixin.__init__(self, self.handle_connected, self.connection_event_error)
     self.running = 0
     self._scheduled = None
     self._lock = Lock()
 def __init__(self):
     self.running = 0
     self._lock = Lock()
     Exporter.__init__(self)
     EventConsumerMixin.__init__(self, self.handle_log, self.handle_error)