Package repast.simphony.ws
Class ScheduleRunner
- java.lang.Object
-
- repast.simphony.ws.ScheduleRunner
-
-
Constructor Summary
Constructors Constructor Description ScheduleRunner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
execute(RunState toExecuteOn)
This executes the given RunState object's schedule.protected ISchedule
getSchedule(RunState toExecuteOn)
TickListener
getTickListener()
boolean
go()
Specifies if the simulation should continue to run (returns true) or if it should stop (returns false).void
init()
void
removeRunListener(RunListener listener)
Removes the specified RunListener from the list for RunListener notified by this runner.void
setController(Controller controller)
void
setEnvironmentBuilder(RunEnvironmentBuilder environment)
void
setPause(boolean pause)
void
setTickListener(TickListener tickListener)
void
step()
void
stop()
-
-
-
Method Detail
-
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.
-
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).
-
getTickListener
public TickListener getTickListener()
-
setTickListener
public void setTickListener(TickListener tickListener)
-
setEnvironmentBuilder
public void setEnvironmentBuilder(RunEnvironmentBuilder environment)
- Specified by:
setEnvironmentBuilder
in interfaceRunner
-
addRunListener
public void addRunListener(RunListener listener)
Description copied from interface:Runner
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.- Specified by:
addRunListener
in interfaceRunner
- Parameters:
listener
- the listener to add.
-
removeRunListener
public void removeRunListener(RunListener listener)
Description copied from interface:Runner
Removes the specified RunListener from the list for RunListener notified by this runner.- Specified by:
removeRunListener
in interfaceRunner
-
setController
public void setController(Controller controller)
- Specified by:
setController
in interfaceRunner
-
-