public abstract class AbstractExperiment extends Object implements ISimulationControl
| Constructor and Description |
|---|
AbstractExperiment(ISimulationModel model) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStopCondition(SimCondition condition) |
void |
addTimeObserver(Observer observer) |
boolean |
checkStopConditions() |
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.
|
abstract void |
startSimulator() |
void |
stop()
Stops the simulation.
|
abstract void |
stopSimulator() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentSimulationTimepublic AbstractExperiment(ISimulationModel model)
public void setMaxSimTime(long simTime)
ISimulationControlsetMaxSimTime in interface ISimulationControlsimTime - the time instant at which the simulation is to stop, expressed in simulated time
unitspublic void addStopCondition(SimCondition condition)
addStopCondition in interface ISimulationControlpublic void start()
ISimulationControlstart in interface ISimulationControlpublic void stop()
ISimulationControlstop in interface ISimulationControlpublic boolean isRunning()
ISimulationControlisRunning in interface ISimulationControlpublic boolean checkStopConditions()
public void addTimeObserver(Observer observer)
addTimeObserver in interface ISimulationControlpublic abstract void startSimulator()
public abstract void stopSimulator()