Interface ISimulationControl
- All Superinterfaces:
ISimulationTimeProvider
- All Known Implementing Classes:
AbstractExperiment
,DesmoJExperiment
,SSJExperiment
This interface provides low level controls for the running simulation.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStopCondition
(SimCondition maxMeasurementsStopCondition) void
addTimeObserver
(Observer observer) boolean
Returns whether the simulation is running.default void
setMaxSimTime
(long simTime) Sets the simulation time at which the simulation is supposed to stop.void
start()
Starts the simulation.void
stop()
Stops the simulation.Methods inherited from interface de.uka.ipd.sdq.simulation.abstractsimengine.ISimulationTimeProvider
getCurrentSimulationTime
-
Method Details
-
start
void start()Starts the simulation. -
stop
void stop()Stops the simulation. -
addStopCondition
-
addTimeObserver
-
isRunning
boolean isRunning()Returns whether the simulation is running. -
setMaxSimTime
default void setMaxSimTime(long simTime) Sets the simulation time at which the simulation is supposed to stop.- Parameters:
simTime
- the time instant at which the simulation is to stop, expressed in simulated time units
-