| Using Stateflow | Search  Help Desk |
Semantics of Active and Inactive States
This example shows the semantics of active and inactive states
.A is detected.
.A is marked active.
.A entry actions execute and complete (entA()).
.E_one occurs and the Stateflow diagram is awakened. State A is active. This is the semantic sequence:
.E_one. A valid transition is detected from state A to state B.
.A exit actions execute and complete (exitA()).
.A is marked inactive.
.B is marked active.
.B entry actions execute and complete (entB()).
.