Creates a new instance of the state class.
The name of the state.
The parent region of the state; note that another state can also be used, in which case the default region of the state will become this states parent. If parent is left undefined, then this state is the root of the state machine hierarchy.
The parent region of the vertex.
Accepts a visitor and calls visitor.visitStateHead method, cascades to child regions then calls the visitor.visitStateTail.
The visitor to call back.
Adds the types of trigger event that can .
Returns the state thereby allowing a fluent style state construction.
Adds a user-defined behaviour to call on state entry.
One or callbacks that will be passed the trigger event.
Returns the state thereby allowing a fluent style state construction.
Adds a user-defined behaviour to call on state exit.
One or callbacks that will be passed the trigger event.
Returns the state thereby allowing a fluent style state construction.
Tests a state to see if it is a composite state, one with one or more child regions.
Returns true if the state is a composite state.
Tests a state to see if it is a final state, one without outgoing transitions.
Returns true if the state is a final state.
Tests a state to see if it is an orthogonal state, one with two or more child regions.
Returns true if the state is an orthogonal state.
Tests a state to see if it is a simple state, one without and child regions.
Returns true if the state is a simple state.
Creates a new transition at this vertex triggered by an event of a specific type.
The type of the triggering event; note that this can be derived from the type parameter.
The type (class name) of the triggering event.
Returns a new typed transition. A typed transition being one whose guard condition and behaviour will accept a parameter of the same type specified.
Creates a new transition from this vertex to the target vertex.
The type of the triggering event that the guard will evaluate.
The target of the transition.
The kind of the transition, specifying its behaviour.
Returns a new transition; if TTrigger is specified, a typed transition will be returned.
Returns the element in string form; the fully qualified name of the element.
Creates a new transition at this vertex with a guard condition.
The type of the triggering event.
The guard condition to determine if the transition should be traversed.
Returns a new transition; if TTrigger is specified, a typed transition will be returned.
Generated using TypeDoc
A state is a situation in the lifecycle of the state machine that is stable between events.