public interface Schedule extends Initialisable
| Modifier and Type | Method and Description |
|---|---|
void |
addStatusListener(ScheduleStatusListener l) |
void |
finish() |
int |
getCurrentTick()
Returns the current tick (which is the next tick that is performed)
|
int |
getEndTick() |
int |
getStartTick() |
int |
getTargetTick() |
void |
register(TickAction o)
Registers the object in case any actions are going to be called on it e.g.
|
void |
run()
Runs the simulation from predefined start to predefined end tick.
|
void |
runFromTo(int start,
int end)
Runs the simulation from given start to end tick.
|
void |
runUntil(int end)
Runs the simulation until the (intermediate) target tick.
|
void |
setEndTick(int end)
Sets the simualtion's final tick.
|
void |
setRegions(RegionSet set) |
void |
setStartTick(int start)
Sets the simulation's start tick.
|
void |
setTargetTick(int target)
Sets and (intermediate) target tick.
|
void |
setTargetToNextTick()
Sets the simulation's target tick to the current tick (which is the next tick that is
performed).
|
void |
tick()
Runs the simulation a single tick.
|
boolean |
unregister(TickAction o)
Removes the given
TickAction from this schedule to prevent the
action from being performed in future. |
initialisevoid tick()
void setTargetToNextTick()
int getCurrentTick()
void register(TickAction o)
o - boolean unregister(TickAction o)
TickAction from this schedule to prevent the
action from being performed in future.o - tick actionvoid setRegions(RegionSet set)
void setStartTick(int start)
start - void setTargetTick(int target)
target - void setEndTick(int end)
end - int getTargetTick()
int getStartTick()
int getEndTick()
void run()
void runUntil(int end)
end - void runFromTo(int start,
int end)
start - end - void finish()
void addStatusListener(ScheduleStatusListener l)