StateMachineFactory

fun <State : Enum<State>, Event : Enum<Event>, GuardKey : Enum<GuardKey>, ActionKey : Enum<ActionKey>> StateMachineFactory(    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).

GuardKey

The type of guard keys (an Enum).

ActionKey

The type of action keys (an Enum).

Memento

The type of memento.

stateType

The kind of states.

eventType

The kind of events.

guardKeyType

The kind of guard keys.

actionKeyType

The kind of action keys.