public interface TransitionAction<S,E>
| Modifier and Type | Method and Description |
|---|---|
void |
execute(ActionContext<S,E> context)
Execute the
Actions backing this TransitionAction. |
boolean |
matches(S from,
S to,
E event)
Test whether this TransitionAction is applicable to the transition criteria.
|
void execute(ActionContext<S,E> context)
Actions backing this TransitionAction.context - the ActionContext.boolean matches(S from, S to, E event)
from - the state transitioned from.to - the state transitioned to.event - the event that caused the transition.true if this transition action is applicable to the transition criteria.