Stateflow | ![]() ![]() |
Example: Event Actions and Superstates
This example shows the semantics of event actions within superstates.
Initially the Stateflow diagram is asleep. State A
.A1
is active. Event E_three
occurs and awakens the Stateflow diagram. Event E_three
is processed from the root of the Stateflow diagram down through the hierarchy of the Stateflow diagram:
E_three
. There is no valid transition.
A
executes and completes during actions (durA()
).
A
executes and completes the on
event E_three
action (A_one
).
A
checks its children for valid transitions. There are no valid transitions.
A1
executes and completes during actions (durA1()
).
This sequence completes the execution of this Stateflow diagram associated with event E_three
.
![]() | Connective Junctions | Parallel (AND) States | ![]() |