State Machine Factory
constructor(stateType: Class<State>, eventType: Class<Event>, guardKeyType: Class<GuardKey>, actionKeyType: Class<ActionKey>)
Construct a new StateMachineFactory primed to create a new instance of the specified kind of state machine.
Parameters
State
The type of states (an Enum).
Event
The type of events (an Enum).
Guard Key
The type of guard keys (an Enum).
Action Key
The type of action keys (an Enum).
Memento
The type of memento.
state Type
The kind of states.
event Type
The kind of events.
guard Key Type
The kind of guard keys.
action Key Type
The kind of action keys.