def __init__(self, event_callback): """ Creates an RSNPlatformDriver instance. @param pnode Root PlatformNode defining the platform network rooted at this platform. @param event_callback Listener of events generated by this driver """ PlatformDriver.__init__(self, event_callback) # CIOMSClient instance created by connect() and destroyed by disconnect(): self._rsn_oms = None # TODO(OOIION-1495) review the following. Commented out for the moment. # But yes, we would probably need some concept of currently "active # ports", probably defined as those where there are active instruments # associated. """ # Simple list of active ports in this deployment configuration: # (this should be all the ports that have devices attached. Used in go_active processing self._active_ports = [] """ # URL for the event listener registration/unregistration (based on # web server launched by ServiceGatewayService, since that's the # service in charge of receiving/relaying the OMS events). # NOTE: (as proposed long ago), this kind of functionality should # actually be provided by some component more in charge of the RSN # platform netwokr as a whole -- as opposed to platform-specific). self.listener_url = None
def __init__(self, event_callback): """ Creates an RSNPlatformDriver instance. @param pnode Root PlatformNode defining the platform network rooted at this platform. @param event_callback Listener of events generated by this driver """ PlatformDriver.__init__(self, event_callback) # CIOMSClient instance created by connect() and destroyed by disconnect(): self._rsn_oms = None # TODO(OOIION-1495) review the following. Commented out for the moment. # But yes, we would probably need some concept of currently "active # ports", probably defined as those where there are active instruments # associated. """ # Simple list of active ports in this deployment configuration: # (this should be all the ports that have devices attached. Used in go_active processing self._active_ports = [] """ # URL for the event listener registration/unregistration (based on # web server launched by ServiceGatewayService, since that's the # service in charge of receiving/relaying the OMS events). # NOTE: (as proposed long ago), this kind of functionality should # actually be provided by some component more in charge of the RSN # platform netwokr as a whole -- as opposed to platform-specific). self.listener_url = None
def __init__(self, event_callback): """ Creates an RSNPlatformDriver instance. @param pnode Root PlatformNode defining the platform network rooted at this platform. @param event_callback Listener of events generated by this driver """ PlatformDriver.__init__(self, event_callback) # CIOMSClient instance created by connect() and destroyed by disconnect(): self._rsn_oms = None # URL for the event listener registration/unregistration (based on # web server launched by ServiceGatewayService, since that's the # service in charge of receiving/relaying the OMS events). # NOTE: (as proposed long ago), this kind of functionality should # actually be provided by some component more in charge of the RSN # platform netwokr as a whole -- as opposed to platform-specific). self.listener_url = None # scheduler config is a bit redundant now, but if we ever want to # re-initialize a scheduler we will need it. self._scheduler = None
def __init__(self, event_callback, refdes=None): """ Creates an RSNPlatformDriver instance. @param event_callback Listener of events generated by this driver """ PlatformDriver.__init__(self, event_callback) # CIOMSClient instance created by connect() and destroyed by disconnect(): self._rsn_oms = None
def __init__(self, event_callback, refdes=None): """ Creates an RSNPlatformDriver instance. @param event_callback Listener of events generated by this driver """ PlatformDriver.__init__(self, event_callback) # CIOMSClient instance created by connect() and destroyed by disconnect(): self._rsn_oms = None
def __init__(self, event_callback): """ Creates an RSNPlatformDriver instance. @param event_callback Listener of events generated by this driver """ PlatformDriver.__init__(self, event_callback) # CIOMSClient instance created by connect() and destroyed by disconnect(): self._rsn_oms = None # URL for the event listener registration/unregistration (based on # web server launched by ServiceGatewayService, since that's the # service in charge of receiving/relaying the OMS events). # NOTE: (as proposed long ago), this kind of functionality should # actually be provided by some component more in charge of the RSN # platform netwokr as a whole -- as opposed to platform-specific). self.listener_url = None # scheduler config is a bit redundant now, but if we ever want to # re-initialize a scheduler we will need it. self._scheduler = None
def __init__(self, pnode, event_callback, create_event_subscriber, destroy_event_subscriber): """ Creates an RSNPlatformDriver instance. @param pnode Root PlatformNode defining the platform network rooted at this platform. @param event_callback Listener of events generated by this driver @param create_event_subscriber @param destroy_event_subscriber """ PlatformDriver.__init__(self, pnode, event_callback, create_event_subscriber, destroy_event_subscriber) # CIOMSClient instance created by connect() and destroyed by disconnect(): self._rsn_oms = None # TODO(OOIION-1495) review the following. Commented out for the moment. # What does "ports that have devices attached" mean? """ # Simple list of active ports in this deployment configuration: # (this should be all the ports that have devices attached. Used in go_active processing self._active_ports = [] """ self._instr_port_map = {} # URL for the event listener registration/unregistration (based on # web server launched by ServiceGatewayService, since that's the # service in charge of receiving/relaying the OMS events). # NOTE: (as proposed long ago), this kind of functionality should # actually be provided by some component more in charge of the RSN # platform netwokr as a whole -- as opposed to platform-specific). self.listener_url = None # external event listener: created in _start_event_dispatch self._event_listener = None
def __init__(self, pnode, event_callback, create_event_subscriber, destroy_event_subscriber): """ Creates an RSNPlatformDriver instance. @param pnode Root PlatformNode defining the platform network rooted at this platform. @param event_callback Listener of events generated by this driver @param create_event_subscriber @param destroy_event_subscriber """ PlatformDriver.__init__(self, pnode, event_callback, create_event_subscriber, destroy_event_subscriber) # CIOMSClient instance created by connect() and destroyed by disconnect(): self._rsn_oms = None # TODO(OOIION-1495) review the following. Commented out for the moment. # What does "ports that have devices attached" mean? """ # Simple list of active ports in this deployment configuration: # (this should be all the ports that have devices attached. Used in go_active processing self._active_ports = [] """ self._instr_port_map = {} # URL for the event listener registration/unregistration (based on # web server launched by ServiceGatewayService, since that's the # service in charge of receiving/relaying the OMS events). # NOTE: (as proposed long ago), this kind of functionality should # actually be provided by some component more in charge of the RSN # platform netwokr as a whole -- as opposed to platform-specific). self.listener_url = None # external event listener: created in _start_event_dispatch self._event_listener = None