Stateflow | ![]() ![]() |
Transitions from a Common Source to Multiple Destinations Example
This example shows the behavior of transitions from a common source to multiple conditional destinations using a connective junction.
Initially the Stateflow diagram is asleep. State A
is active. Event E_two
occurs and awakens the Stateflow diagram. Event E_two
is processed from the root of the Stateflow diagram down through the hierarchy of the Stateflow diagram:
E_two
. There is a valid transition segment from state A
to the connective junction. Given that the transition segments are equivalently labeled, evaluation begins from a twelve o'clock position on the connective junction and progresses clockwise. The first transition segment, labeled with event E_one
, is not valid. The next transition segment, labeled with event E_two
, is valid. The complete transition from state A
to state C
is valid.
A
exit actions (exitA()
) execute and complete.
A
is marked inactive.
C
is marked active.
C
entry actions (entC()
) execute and complete.
This sequence completes the execution of this Stateflow diagram associated with event E_two
.
![]() | Flow Diagram Notation Example | Transitions from Multiple Sources to a Common Destination Example | ![]() |