Class: Sub

HSM. Sub

new Sub(theStateID, theSubMachine)

Adapter class for nested states
Parameters:
Name Type Description
theStateID String Identifies the state. Must be unique in the containing state machine.
theSubMachine HSM.StateMachine the nested state machine.
Source:

Extends

Members

#handler[event] :HSM.State~Handler|Array.<HSM.State~Handler>

Map of events to handlers. Either a single handler or an array of handlers can be given. The guard of each handler will be called until a guard returns true (or a handler doesn't have a guard). This handler will then be triggered.
Type:
Inherited From:
Source:

State#on_entry :HSM.State~EntryFunc

Type:
Inherited From:
Source:

State#on_exit :HSM.State~ExitFunc

Type:
Inherited From:
Source: