StateMachineBuilder

constructor(validMapStates: Set<S>, validEvents: Set<E>)

Parameters

S

is an enum representing all the states of the FSM

E

is en enum representing all the events the FSM may receive

C

is the class of the Context where the action will be applied.