hbp_nrp_cleserver.server.SimulationServerLifecycle module¶
This module contains the simulation server implementation of the simulation lifecycle
-
class
SimulationServerLifecycle(sim_id, cle, server, except_hook=None)[source]¶ Bases:
hbp_nrp_commons.simulation_lifecycle.SimulationLifecycleImplements the simulation server lifecycle of a simulation
-
property
done_event¶ Gets the event that represents when the simulation is done
- Returns
An event that will be set as soon as the lifecycle is done
-
fail(state_change)[source]¶ Reacts on failures in the simulation
- Parameters
state_change – The state change according to the failure
-
initialize(state_change)[source]¶ Initializes the simulation
- Parameters
state_change – The state change that caused the simulation to initialize
-
pause(state_change)[source]¶ Pauses the simulation
- Parameters
state_change – The state change that caused the pause request
-
shutdown(shutdown_event)[source]¶ Shuts down this instance of the simulation lifecycle
- Parameters
shutdown_event – The event that caused the shutdown
-
property