Interface ISimulationControl

All Superinterfaces:
ISimulationTimeProvider
All Known Implementing Classes:
AbstractExperiment, DesmoJExperiment, SSJExperiment

public interface ISimulationControl extends ISimulationTimeProvider
This interface provides low level controls for the running simulation.
  • Method Details

    • start

      void start()
      Starts the simulation.
    • stop

      void stop()
      Stops the simulation.
    • addStopCondition

      void addStopCondition(SimCondition maxMeasurementsStopCondition)
    • addTimeObserver

      void addTimeObserver(Observer observer)
    • 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