public interface Action<S,E,C>
| Modifier and Type | Method and Description |
|---|---|
void |
onTransition(S from,
S to,
E causedBy,
C context,
StateMachine<S,E,C> stateMachine)
Called when a transition occurs
|
void onTransition(S from, S to, E causedBy, C context, StateMachine<S,E,C> stateMachine)
from - the state the machine was in before the transitionto - the state the machine is in after the transitioncausedBy - the event that triggered the transitioncontext - the context in which the event was fired supplied to the transitionstateMachine - the machine for which the transition occurred