public interface ReRunnable extends SimEventScheduler
EventList
and Schedule
.
If this interface is implemented, the object is presumed to manage its own state from simulation run to simulation run, persisting as an entity across those runs, but resetting between runs.
The simkit idiom is to reset only simulation state variables
to some initial value governed by other properties or settings for each run.
This should occur in the object's reset
method. Further, if
isReRunnable
returns true, then the object must have a
doRun()
method. It is in this method that initial scheduling activity
should take place
Refactored out of the interface SimEntity
DEFAULT_ENTITY_NAME, DEFAULT_EVENT_NAME, DEFAULT_PRIORITY, EVENT_METHOD_PREFIX, NL
Modifier and Type | Method and Description |
---|---|
boolean |
isPersistant() |
boolean |
isReRunnable() |
void |
reset() |
void |
setPersistant(boolean persist) |
getEventList, getPriority, getSerial, handleSimEvent, interrupt, interrupt, interruptAll, interruptAll, interruptAll, interruptAllWithArgs, interruptAllWithArgs, setPriority, waitDelay, waitDelay