public interface StartOrResumable
Modifier and Type | Method and Description |
---|---|
void |
reset()
Reset the state of startOrResumable.
|
void |
startOrResume(java.util.LinkedList<metroIIcomm.Event.Builder> metroIIEventList)
If startOrResume() resumes from the state it saves last time.
|
void startOrResume(java.util.LinkedList<metroIIcomm.Event.Builder> metroIIEventList) throws IllegalActionException
If startOrResume() resumes from the state it saves last time. The state means local variables, stacks or anything it needs to resume the execution of last time. Continue iteratively executing the actor until any MetroII Event is proposed. When MetroII Events are proposed, the function returns with the state saved and the proposed events added into metroIIEventList.
IMPORTANT: the references of MetroII Events could be part of the state of the function. The events are returned in metroIIEventList and may be updated externally (the event status may change from PROPOSED to WAITING or NOTIFIED). Therefore, when the function resumes the state, it should continue the execution based on updated MetroII Events.
metroIIEventList
- List of MetroII EventsIllegalActionException
- if the associated action (e.g. firing) is not permitted.void reset()