Class ActionBuilder<S,E>
- java.lang.Object
-
- com.digitalpetri.strictmachine.dsl.ActionBuilder<S,E>
-
- Direct Known Subclasses:
GuardBuilder
public class ActionBuilder<S,E> extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionBuilder<S,E>execute(Action<S,E> action)Addactionto the list ofTransitionActions to be executed.ActionBuilder<S,E>executeFirst(Action<S,E> action)Addactionto the beginning of the list ofTransitionActions to be executed.ActionBuilder<S,E>executeLast(Action<S,E> action)Addactionto the end of the list ofTransitionActions to be executed.
-
-
-
Method Detail
-
execute
public ActionBuilder<S,E> execute(Action<S,E> action)
Addactionto the list ofTransitionActions to be executed.Actions are executed in the order they appear in the list.
- Parameters:
action- the action to execute.- Returns:
- this
ActionBuilder.
-
executeLast
public ActionBuilder<S,E> executeLast(Action<S,E> action)
Addactionto the end of the list ofTransitionActions to be executed.Actions are executed in the order they appear in the list.
- Parameters:
action- the action to execute.- Returns:
- this
ActionBuilder.
-
executeFirst
public ActionBuilder<S,E> executeFirst(Action<S,E> action)
Addactionto the beginning of the list ofTransitionActions to be executed.Actions are executed in the order they appear in the list.
- Parameters:
action- the action to execute.- Returns:
- this
ActionBuilder.
-
-