public interface Transition<S,E>
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(FsmContext<S,E> ctx,
S state,
E event)
Test whether this Transition is applicable for the current
state and event. |
S |
target()
Get the target state of this transition.
|
S target()
boolean matches(FsmContext<S,E> ctx, S state, E event)
state and event.ctx - the FsmContext.state - the current FSM state.event - the event being evaluated.true if this transition is applicable for state and event.