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.
Passing just the StateMachine model will initialise the model, passing the StateMachine model and instance will initialse the instance and if necessary, the 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.
A State is deemed complete when it has reached a FinalState or a State that has no outgoing Transitions; a Region is deemed complete if all its child Regions are complete.
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.
Change the bahaviour of internal Transitions in respect to trigering completion events for the [[State] they are in.
True for internal Transitions in respect to trigering completion events for the [[State] they are in.
Updates the method used to generate random numbers.
The new method that will be used to generate random numbers.
Validates a StateMachine model for correctness (see the constraints defined within the UML Superstructure specification).
Validation warnings and errors are sent to the console.warn and console.error callbacks.
The StateMachine model to validate.
The object used for log, warning and error messages.
Generated using TypeDoc
Flag to make internal Transitions trigger completion events for State they are in.