Interface Transition<S,​E>


  • public interface Transition<S,​E>
    • 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 current state and event.
        Parameters:
        ctx - the FsmContext.
        state - the current FSM state.
        event - the event being evaluated.
        Returns:
        true if this transition is applicable for state and event.