def __init__(self, initial_state=InstrumentAgentState.UNINITIALIZED): log.debug('ExternalDatasetAgent.__init__: initial_state = {0}'.format(initial_state)) InstrumentAgent.__init__(self, initial_state) self._fsm.add_handler(InstrumentAgentState.STREAMING, InstrumentAgentEvent.EXECUTE_RESOURCE, self._handler_streaming_execute_resource)
def __init__(self, initial_state=ResourceAgentState.UNINITIALIZED): log.debug('ExternalDatasetAgent.__init__: initial_state = {0}'.format(initial_state)) InstrumentAgent.__init__(self, initial_state) self._fsm.add_handler(ResourceAgentState.STREAMING, ResourceAgentEvent.EXECUTE_RESOURCE, self._handler_streaming_execute_resource)