Class InteractivBatchRunner

java.lang.Object
repast.simphony.engine.environment.AbstractRunner
repast.simphony.batch.InteractivBatchRunner
All Implemented Interfaces:
Runner, Executor<RunState>

public class InteractivBatchRunner extends AbstractRunner
Modified version of BatchScheduleRunner that lets the user programmatically call the scheduler
Author:
Nick Collier, Eric Tatara
  • Constructor Details

    • InteractivBatchRunner

      public InteractivBatchRunner()
  • Method Details

    • execute

      public void execute(RunState toExecuteOn)
      This executes the given RunState object's schedule. It will continue executing the schedule until there are no more actions schedule or the run manager tells it to stop.
      Parameters:
      toExecuteOn - the RunState to execute on
    • go

      public boolean go()
      Description copied from interface: Runner
      Specifies if the simulation should continue to run (returns true) or if it should stop (returns false).
      Specified by:
      go in interface Runner
      Overrides:
      go in class AbstractRunner
      Returns:
      true if the runner should keep going
    • setPause

      public void setPause(boolean pause)
      Specified by:
      setPause in interface Runner
      Overrides:
      setPause in class AbstractRunner
    • step

      public void step()
      Specified by:
      step in interface Runner
      Overrides:
      step in class AbstractRunner
    • stop

      public void stop()
      Description copied from class: AbstractRunner
      Stops the execution of the scheduled events after the any events scheduled for the current tick have been executed.
      Specified by:
      stop in interface Runner
      Overrides:
      stop in class AbstractRunner
    • getTickListener

      public TickListener getTickListener()
    • setTickListener

      public void setTickListener(TickListener tickListener)
    • getSchedule

      protected ISchedule getSchedule(RunState toExecuteOn)