Interface Transition<S,E>
-
public interface Transition<S,E>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanmatches(FsmContext<S,E> ctx, S state, E event)Test whether this Transition is applicable for the currentstateandevent.Starget()Get the target state of this transition.
-
-
-
Method Detail
-
target
S target()
Get the target state of this transition.- Returns:
- the target state of this transition.
-
matches
boolean matches(FsmContext<S,E> ctx, S state, E event)
Test whether this Transition is applicable for the currentstateandevent.- Parameters:
ctx- theFsmContext.state- the current FSM state.event- the event being evaluated.- Returns:
trueif this transition is applicable forstateandevent.
-
-