Passes a message to a state machine instance for evaluation; a message may trigger a Transition.
The StateMachine model.
The state machine instance.
The message to evaluate.
Defaulting to true, this will cause the StateMachine model to be initialised prior to initialising the instance if the model has changed.
Returns true if the message caused a Transition.
Initialises a state machine instance and/or StateMachine model.
The StateMachine model. If autoInitialiseModel is true (or no instance is specified) and the model has changed, the model will be initialised.
The optional state machine instance to initialise.
Defaulting to true, this will cause the model to be initialised prior to initialising the instance if the model has changed.
The function used for to generate random numbers; may be overriden for testing or other specific purposes.
Replace the default console object to implement custom logging.
An object to send log, warning and error messages to.
Updates the method used to generate random numbers.
The new method that will be used to generate random numbers.
The object used for log, warning and error messages.
Generated using TypeDoc