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

      • 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.
      • addTransition

        void addTransition​(Transition<E> tr)