Interface Runner
- All Known Implementing Classes:
AbstractRunner,BatchScheduleRunner,DefaultScheduleRunner,GUIScheduleRunner,InteractivBatchRunner,ScheduleRunner
Interface for the action that will execute a schedule in the
ControllerRegistry.
- Author:
- Jerry Vos
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRunListener(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.booleango()Specifies if the simulation should continue to run (returns true) or if it should stop (returns false).voidinit()voidremoveRunListener(RunListener listener) Removes the specified RunListener from the list for RunListener notified by this runner.voidsetController(Controller controller) voidsetEnvironmentBuilder(RunEnvironmentBuilder environment) voidsetPause(boolean pause) voidstep()voidstop()
-
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
-
step
void step() -
addRunListener
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
Removes the specified RunListener from the list for RunListener notified by this runner.- Parameters:
listener-
-
setController
-