Interface ISimulationFeature

All Superinterfaces:
jadex.execution.IExecutionFeature
All Known Implementing Classes:
MasterSimulationFeature, SlaveSimulationFeature

public interface ISimulationFeature extends jadex.execution.IExecutionFeature
The simulation feature is an extended execution feature that provides star/stop/step operations and event-based simulation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setTime(long millis)
    Set the current time.
    void
    Start the simulation.
    jadex.future.IFuture<Void>
    Stop the simulation.

    Methods inherited from interface jadex.execution.IExecutionFeature

    getComponent, getTime, isComponentThread, scheduleStep, scheduleStep, scheduleStep, scheduleStep, waitForDelay
  • Method Details

    • setTime

      void setTime(long millis)
      Set the current time. Time entries older than the given time will be executed when the simulation is running, but receive the new current time in IExecutionFeature.getTime()
      Parameters:
      millis - The time in milliseconds.
    • start

      void start()
      Start the simulation. Used to resume a simulation after it was stopped.
      Throws:
      IllegalStateException - When the simulation is already running.
    • stop

      jadex.future.IFuture<Void> stop()
      Stop the simulation. Stops scheduling of due time entries, i.e., the time will no longer advance. Note, that components will continue to execute as long as they have activities for the current time.
      Returns:
      A future to indicate that simulation has stopped, i.e., all components have finished their activities.