Interface Runner

All Superinterfaces:
Executor<RunState>
All Known Implementing Classes:
AbstractRunner, BatchScheduleRunner, DefaultScheduleRunner, GUIScheduleRunner, InteractivBatchRunner, ScheduleRunner

public interface Runner extends Executor<RunState>
Interface for the action that will execute a schedule in the ControllerRegistry.
Author:
Jerry Vos
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds the specified listener to the list of RunListener-s to be notified of any run related events, such as stopped, started, and so on.
    boolean
    go()
    Specifies if the simulation should continue to run (returns true) or if it should stop (returns false).
    void
     
    void
    Removes the specified RunListener from the list for RunListener notified by this runner.
    void
     
    void
     
    void
    setPause(boolean pause)
     
    void
     
    void
     

    Methods inherited from interface repast.simphony.engine.graph.Executor

    execute
  • Method Details

    • go

      boolean go()
      Specifies if the simulation should continue to run (returns true) or if it should stop (returns false).
      Returns:
      false if the sim should stop, true otherwise
    • init

      void init()
    • stop

      void stop()
    • setPause

      void setPause(boolean pause)
    • setEnvironmentBuilder

      void setEnvironmentBuilder(RunEnvironmentBuilder environment)
    • step

      void step()
    • addRunListener

      void addRunListener(RunListener listener)
      Adds the specified listener to the list of RunListener-s to be notified of any run related events, such as stopped, started, and so on.
      Parameters:
      listener - the listener to add.
    • removeRunListener

      void removeRunListener(RunListener listener)
      Removes the specified RunListener from the list for RunListener notified by this runner.
      Parameters:
      listener -
    • setController

      void setController(Controller controller)