| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Action<T>> |
m_actions |
| Constructor and Description |
|---|
ActionChain()
Creates an empty chain of actions
|
ActionChain(Action<T>... actions)
Creates a chain of actions
|
| Modifier and Type | Method and Description |
|---|---|
ActionChain<T> |
add(Action<T> action)
Adds an action to this action chain
|
void |
execute(T event,
Transition<T> transition,
Statechart<T> statechart)
Executes the action
|
public ActionChain<T> add(Action<T> action)
action - The actionpublic void execute(T event, Transition<T> transition, Statechart<T> statechart) throws ActionException
Actionexecute in class Action<T extends Event>event - The event that fires the transition to which
this action is associatedtransition - The transition to which this action is associatedstatechart - The statechart this transition belongs toActionExceptionCopyright © Sylvain HallĂ©. All Rights Reserved.