| Stateflow | ![]() |
Labeled Default Transitions Example
This example shows the use of a default transition with a label.
Initially the Stateflow diagram is asleep. State A is active. Event E_one occurs, awakening the Stateflow diagram. Event E_one is processed from the root of the Stateflow diagram down through the hierarchy of the Stateflow diagram with the following steps:
A to superstate B. The transition is valid if event E_one or E_two occurs.
A exit actions execute and complete (exitA()).
A is marked inactive.
B is marked active.
B entry actions execute and complete (entB()).
B detects a valid default transition to state B.B1. The default transition is valid as a result of E_one.
B.B1 is marked active.
B.B1 entry actions execute and complete (entB1()).
This sequence completes the execution of this Stateflow diagram associated with event E_one when state A is initially active.
| Default Transition and a History Junction Example | Inner Transition Examples | ![]() |