public class ExtendedSimulationRuntime
extends org.liris.smartgov.simulator.core.simulation.SimulationRuntime
Constructor and Description |
---|
ExtendedSimulationRuntime(org.liris.smartgov.simulator.core.environment.SmartGovContext context) |
Modifier and Type | Method and Description |
---|---|
void |
restart(org.liris.smartgov.simulator.core.environment.SmartGovContext context)
Allows to restart the temporal parts of the simulation.
|
void |
stop()
Stop a running simulation.
|
addSimulationPausedListener, addSimulationResumedListener, addSimulationStartedListener, addSimulationStepListener, addSimulationStoppedListener, getClock, getContext, getSimulationThread, getTickCount, getTickDelay, getTickDuration, isRunning, pause, resume, setTickDelay, setTickDuration, start, start, step, waitUntilSimulatioEnd
public ExtendedSimulationRuntime(org.liris.smartgov.simulator.core.environment.SmartGovContext context)
public void restart(org.liris.smartgov.simulator.core.environment.SmartGovContext context)
context
- current contextpublic void stop()
stop
in class org.liris.smartgov.simulator.core.simulation.SimulationRuntime
java.lang.IllegalStateException
- if no simulation is running.