Methods
getState() → {string}
Returns the state of its corresponding host object.
Returns:
the state of its corresponding host object
- Type
- string
init()
Starts the lifecycle of the host object, i.e. "pushes" the host object into the initial state of this state machine (and further from there).
Throws:
- Type
- Error
process(trigger)
Executes the state machine according to the given trigger.
Parameters:
Name | Type | Description |
---|---|---|
trigger |
string | event that triggers state machine execution |
Throws:
- Type
- Error