Interface ISimulationControl
-
- Type Parameters:
M- the type of the simulation model
- All Known Implementing Classes:
AbstractExperiment,DesmoJExperiment,SSJExperiment
public interface ISimulationControl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddStopCondition(SimCondition maxMeasurementsStopCondition)voidaddTimeObserver(Observer observer)doublegetCurrentSimulationTime()Returns the current simulation time.booleanisRunning()Returns whether the simulation is running.voidsetMaxSimTime(long simTime)Sets the simulation time at which the simulation is supposed to stop.voidstart()Starts the simulation.voidstop()Stops the simulation.
-
-
-
Method Detail
-
start
void start()
Starts the simulation.
-
stop
void stop()
Stops the simulation.
-
getCurrentSimulationTime
double getCurrentSimulationTime()
Returns the current simulation time.
-
setMaxSimTime
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
-
addStopCondition
void addStopCondition(SimCondition maxMeasurementsStopCondition)
-
addTimeObserver
void addTimeObserver(Observer observer)
-
isRunning
boolean isRunning()
Returns whether the simulation is running.
-
-