public class NonBlockingFire extends FireMachine
FireMachine.State
Constructor and Description |
---|
NonBlockingFire(Actor actor)
Constructs a NonBlockingfire by wrapping the actor.
|
Modifier and Type | Method and Description |
---|---|
void |
startOrResume(java.util.LinkedList<metroIIcomm.Event.Builder> metroIIEventList)
if the current state is START, call fire() of the wrapped actor, and
transition to FINAL.
|
actor, getState, getStateEvent, proposeStateEvent, reset, setState, wrapup
public NonBlockingFire(Actor actor)
actor
- actor to be wrapped.public void startOrResume(java.util.LinkedList<metroIIcomm.Event.Builder> metroIIEventList) throws IllegalActionException
metroIIEventList
- the list of MetroII events that trigger startOrResume().IllegalActionException
- if the associated action (e.g. firing) is not permitted.