Stateflow | ![]() ![]() |
Active and Inactive States
States have the Boolean characteristic of being active or inactive. The occurrence of events drives the execution of the Stateflow diagram. At any point in the execution of a Stateflow diagram, there will be some combination of active and inactive states. These are some possible combinations:
In this example, when state A
is active, A1
and A2
are active.
In this example, state B
, state C,
and C
.C2
or state B
, state C
, and C
.C1
are active at the same time.
In this example, state B
or state A
.A1
or state A
.A2
is active at any one time.
When a given state is active, all of its ancestor states are also active. See Semantics of Active and Inactive States for more information.
![]() | State Decomposition | Combination States | ![]() |