fsm library

Classes

Graph<STATE, EVENT, SIDE_EFFECT>
GraphBuilder<STATE, EVENT, SIDE_EFFECT>
Builder for FSM. [...]
Invalid<STATE, EVENT>
Invalid transition called by event. Machine stays in state.
StateBuilder<S extends STATE, STATE, EVENT, SIDE_EFFECT>
State builder. [...]
StateMachine<STATE, EVENT, SIDE_EFFECT>
Finite State Machine implementation. [...]
Transition<STATE, EVENT, SIDE_EFFECT>
Defines FSM transition: the change from one state to another.
TransitionTo<STATE, SIDE_EFFECT>
Valid<STATE, EVENT, SIDE_EFFECT>
Valid transition meaning that machine goes from fromState to toState. Transition is caused by event. [...]

Typedefs

BuildGraph<STATE, EVENT, SIDE_EFFECT> = void Function(GraphBuilder<STATE, EVENT, SIDE_EFFECT>)
BuildState<S extends STATE, STATE, EVENT, SIDE_EFFECT> = dynamic Function(StateBuilder<S, STATE, EVENT, SIDE_EFFECT>)
CreateTransitionTo<S extends STATE, STATE, E extends EVENT, EVENT, SIDE_EFFECT> = TransitionTo<STATE, SIDE_EFFECT> Function(S s, E e)
TransitionListener<STATE, EVENT, SIDE_EFFECT> = void Function(Transition<STATE, EVENT, SIDE_EFFECT>)
VoidCallback<T> = void Function(T)