Class SubFSMTransition<E>

  • Type Parameters:
    E - The type of events the FSM processes.

    public class SubFSMTransition<E>
    extends Transition<E>
    A transition that refers to another FSM. Entering this transition starts the underlying sub-FSM. To leave the transition, the sub-FSM must end.
    • Constructor Detail

      • SubFSMTransition

        public SubFSMTransition​(OutputState<E> srcState,
                                InputState<E> tgtState,
                                FSM<E> fsm)
        Creates the transition.
        Parameters:
        srcState - The source state of the transition.
        tgtState - The output state of the transition.
        fsm - The inner FSM that composes the transition.
        Throws:
        IllegalArgumentException - If one of the states is null.