Stateflow | ![]() ![]() |
Default Transitions
Default transitions specify which exclusive (OR) state is to be active when there is ambiguity between two or more exclusive (OR) states at the same level in the hierarchy.
For example, in the diagram on page 2-10, the default transition to StateA1
resolves the ambiguity that exists with regard to whether StateA1
or StateA2
should be active when State A becomes active. In this case, when StateA
is active, by default StateA1
is also active.
In the following Lights
subsystem, the default transition to the Lights
.Off
substate indicates that when the Lights
superstate becomes active, the Off
substate becomes active by default.
Note History junctions override default transition paths in superstates with exclusive (OR) decomposition. |
Note In parallel (AND) states, a default transition must always be present to indicate which of its exclusive (OR) states is active when the parallel state becomes active. |
![]() | Transitions | Events | ![]() |