M
- the type of the simulation modelpublic interface ISimulationControl
Modifier and Type | Method and Description |
---|---|
void |
addStopCondition(SimCondition maxMeasurementsStopCondition) |
void |
addTimeObserver(Observer observer) |
double |
getCurrentSimulationTime()
Returns the current simulation time.
|
boolean |
isRunning()
Returns whether the simulation is running.
|
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.
|
void start()
void stop()
double getCurrentSimulationTime()
void setMaxSimTime(long simTime)
simTime
- the time instant at which the simulation is to stop, expressed in simulated time
unitsvoid addStopCondition(SimCondition maxMeasurementsStopCondition)
void addTimeObserver(Observer observer)
boolean isRunning()