Interface Simulator

All Known Implementing Classes:
BasicSimulator, ConcurrentDESimulator, ConcurrentTSSimulator, DynamicDecorator, SequentialDESimulator, SequentialTSSimulator

public interface Simulator
The simulator runs the simulation model. Its functionality comprises:
  • Maintaining the global event queue (geq)
  • Scheduling of the agents' time of next events (tonie)
  • Task management, starting the agents' doEvent methods
  • Method Details

    • runSimulation

      void runSimulation(Time stop)
      Starts a simulation run
      Parameters:
      stop - simulation time when the simulation should stop
      Throws:
      Simulator.InvalidSimulatorStateException - if there is an error during simulation
    • getRootDomain

      Domain getRootDomain()
    • getSimulationTime

      Time getSimulationTime()
    • getCurrentEventList

      List<Agent> getCurrentEventList()
    • registerEventsProcessedListener

      void registerEventsProcessedListener(Listener<Simulator> listener)
      Registers an EventsProcessedListener to be called after each simulation cycle.
      Parameters:
      listener - the Listener implementation to be added
    • unregisterEventsProcessedListener

      void unregisterEventsProcessedListener(Listener<Simulator> listener)
      Unregisters an EventsProcessedListener.
      Parameters:
      listener - the Listener implementation to be removed