Stateflow | ![]() ![]() |
Transitions from Multiple Sources to a Common Destination Example
This example shows the behavior of transitions from multiple sources to a single destination using a connective junction.
Initially the Stateflow diagram is asleep. State A
is active. Event E_one
occurs and awakens the Stateflow diagram. Event E_one
is processed from the root of the Stateflow diagram down through the hierarchy of the Stateflow diagram:
E_one
. There is a valid transition segment from state A
to the connective junction and from the junction to state C
.
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_one
.
![]() | Transitions from a Common Source to Multiple Destinations Example | Transitions from a Source to a Destination Based on a Common Event Example | ![]() |