spinetoolbox.spine_engine_manager
¶
Contains SpineEngineManagerBase.
- authors
Marin (KTH)
- date
14.10.2020
Module Contents¶
Classes¶
|
|
Functions¶
|
- class spinetoolbox.spine_engine_manager.SpineEngineManagerBase[source]¶
- abstract run_engine(self, engine_data)[source]¶
Runs an engine with given data.
- Parameters
engine_data (dict) – The engine data.
- abstract get_engine_event(self)[source]¶
Gets next event from engine currently running.
- Returns
two element tuple: event type identifier string, and event data dictionary
- Return type
tuple(str,dict)
- class spinetoolbox.spine_engine_manager.RemoteSpineEngineManager(engine_server_address)[source]¶
Bases:
SpineEngineManagerBase
- Parameters
engine_server_address (str) –
- _send(self, request, *args, receive=True)[source]¶
Sends a request to the server with the given arguments.
- Parameters
request (str) – One of the supported engine server requests
args – Request arguments
receive (bool, optional) – If True (the default) also receives the response and returns it.
- Returns
response, or None if receive is False
- Return type
str or NoneType
- class spinetoolbox.spine_engine_manager.LocalSpineEngineManager[source]¶
Bases:
SpineEngineManagerBase
- run_engine(self, engine_data)[source]¶
Runs an engine with given data.
- Parameters
engine_data (dict) – The engine data.
- get_engine_event(self)[source]¶
Gets next event from engine currently running.
- Returns
two element tuple: event type identifier string, and event data dictionary
- Return type
tuple(str,dict)