Package-level declarations
Types
Type safe argument transition builder
Pair of event and argument coming from processEvent() method. Used as single argument in all guard and conditional callbacks same as TransitionParams for transitions
Defines transition API for internal library usage. All transitions must implement this interface. This is safe to cast any Transition to InternalTransition by design.
Transition that matches event and has a meaningful direction (except NoTransition)
Represent a transition between states, which gets triggered when specified Event is posted to StateMachine
Caller should check subclass to recognise/distinguish NoTransition and Stay cases.
Most of the cases EXTERNAL and LOCAL transition are functionally equivalent except in cases where transition is happening between super and sub-states. Local transition doesn't cause exit and entry to source state if target state is a sub-state of a source state. Other way around, local transition doesn't cause exit and entry to target state if target is a superstate of a source state.
Properties
Convenience property for unwrapping original argument. If the event is not WrappedEvent this is same as TransitionParams.argument property
Convenience property for unwrapping original event. If the event is not WrappedEvent this is same as TransitionParams.event property
Functions
Transition is triggered with a targetState, resolving it in place if it is a PseudoState