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 TypeMethodDescriptionvoid
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.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
step()
void
stop()
-
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
-