Interface OutputState<E>

  • Type Parameters:
    E - The type of events the FSM processes.
    All Superinterfaces:
    State<E>
    All Known Implementing Classes:
    InitState, OutputStateImpl, StdState

    public interface OutputState<E>
    extends State<E>
    Defines a type of state that can produce as output events.
    • Method Detail

      • exit

        void exit()
           throws CancelFSMException
        Actions done when a transition of the state is executed so that this state is left.
        Throws:
        CancelFSMException - If leaving the state leads to a cancelling of the FSM execution.
      • process

        default boolean process​(E event)
        Asks to the state to process of the given event.
        Parameters:
        event - The event to process. Can be null.
        Returns:
        True: a transition is found and executed. False otherwise.
      • getTransitions

        List<Transition<E>> getTransitions()
        Returns:
        The list of outgoing transitions of the state.
      • addTransition

        void addTransition​(Transition<E> tr)
        Adds the given transitions to the list of outgoing transitions of the state.
        Parameters:
        tr - The transition to add.