Interface ActionContext<S,​E>

  • Type Parameters:
    S - state type
    E - event type
    All Superinterfaces:
    FsmContext<S,​E>

    public interface ActionContext<S,​E>
    extends FsmContext<S,​E>
    The context in which a Action is being executed.

    Provides access to the transition criteria: the from state, to state, and event that triggered the transition.

    • Method Detail

      • from

        S from()
        Get the state being transitioned from.
        Returns:
        the state being transitioned from.
      • to

        S to()
        Get the state transitioned to.
        Returns:
        the state transitioned to.
      • event

        E event()
        Get the event that caused the transition.
        Returns:
        the event that caused the transition.