![]() ![]() Starting a transition from a sub-state, leaving the composite state and re-entering a composite state (eventually the same) will execute the composition of all exit and entry actions of the involved states. Sub-states and not those of the composite state. Starting a transition from a sub-state and targeting a sub-state within the same composite state will execute only the exit and entry actions of the Starting a transition at the composite state will exit from any sub-state in case the state machine resides in a sub-state.īoth the exit action of the sub-state and the exit action of the composite state will be executed. Targeting a state outside of a composite state from one of its sub-states will execute the exit action of the leaf simple state and then the exit action of the composite state. Targeting a composite state at its border instead of a sub-state will enter the defined initial state of the enclosed group of sub-states, unless the history functionality is enabled. The actions of the composite state are common for all sub-states. ![]() Targeting a sub-state of a composite state from outside of the composite state will execute the entry action of the composite state and then the entry action of the target state. The transition excution rules are as follows: The entry or exit actions of the composite state are executed additionally to the entry or exit actions of the ultimate leaf simple states. Regardless of the fact that transtions may start from or end on composite states, the state machine will transfer the active state of the state machine from a leaf simple state to (usually) another leaf simple state.įor such cases the transition effectively crosses the border of the involved composite states which causes that This introduces a bunch of new situations for transitions within a state machine. Hierarchical state machines allow to enclose a group of states within a composite state. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |