Interface Runner
-
- 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
All Methods Instance Methods Abstract 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.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 Detail
-
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)
-
-