CoSimulationController#
- class wattson.cosimulation.control.co_simulation_controller.CoSimulationController(scenario_path: Path, **kwargs)#
Bases:
WattsonQueryHandlerMethods
add_simulation_control_clientStarts a command-line-interface for the co-simulation :return:
get_controller_namespaceget_dataget_model_managerget_simulation_control_clientsget_simulator_typesget_simulatorsget_wattson_client_configHandles the given WattsonQuery and provides an optional response.
Checks whether the physical simulator handles specific SimulationControlQueries.
has_simulatorjoinload_scenariomanual_scenarioAppends a message to be displayed after the co-simulation started.
register_simulatorsend_notificationset_dataStarts the co-simulation by performing the following steps: * Creates the network emulation * Creates the physical process simulation * Starts the physical process simulation * Deploys network hosts / applications :return:
stopAttributes
configuration_storeis_waiting_for_clientsnetwork_emulatorphysical_simulatorsimulation_control_server- __init__(scenario_path: Path, **kwargs)#
- cli(cli_sig_int_handler: Optional = None)#
Starts a command-line-interface for the co-simulation :return:
- Parameters:
cli_sig_int_handler (Optional, optional) – (Default value = None)
- handle_simulation_control_query(query: WattsonQuery) WattsonResponse | None#
Handles the given WattsonQuery and provides an optional response. If the query type is not supported, this should raise an InvalidSimulationControlQueryException.
- Parameters:
query (WattsonQuery) –
- handles_simulation_query_type(query: WattsonQuery | Type[WattsonQuery]) bool#
Checks whether the physical simulator handles specific SimulationControlQueries.
- Parameters:
query (Union[WattsonQuery, Type[WattsonQuery]]) – The query instance or class to be checked.
- Returns:
Whether this simulator can handle this query type
- Return type:
bool
- queue_post_start_message(message: str)#
Appends a message to be displayed after the co-simulation started. :param message: The message to be displayed.
- start()#
Starts the co-simulation by performing the following steps: * Creates the network emulation * Creates the physical process simulation * Starts the physical process simulation * Deploys network hosts / applications :return: