Interface State<S,​E,​C>

  • Type Parameters:
    S - the type of state
    E - the type of event
    All Superinterfaces:
    Visitable
    All Known Implementing Classes:
    StateImpl

    public interface State<S,​E,​C>
    extends Visitable
    State
    Author:
    Frank Zhang
    • Method Detail

      • getId

        S getId()
        Gets the state identifier.
        Returns:
        the state identifiers
      • addTransition

        Transition<S,​E,​C> addTransition​(E event,
                                                    State<S,​E,​C> target,
                                                    TransitionType transitionType)
        Add transition to the state
        Parameters:
        event - the event of the Transition
        target - the target of the transition
        Returns: