EmptyNetworkEmulator#
- class wattson.cosimulation.simulators.network.emulators.empty_network_emulator.EmptyNetworkEmulator(**kwargs)#
Bases:
NetworkEmulator
Methods
Start a command-line-interface to interact with the network emulator :return:
Start services attached to network nodes :return:
get_namespace
Handles the given WattsonQuery and provides an optional response.
Checks whether the physical simulator handles specific SimulationControlQueries.
Starts the simulator / emulator.
Stops the simulator / emulator.
- cli()#
Start a command-line-interface to interact with the network emulator :return:
- deploy_services()#
Start services attached to network nodes :return:
- 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
- start()#
Starts the simulator / emulator. :return:
- stop()#
Stops the simulator / emulator. :return: