Stateflow User's Guide Previous page   Next Page

Transition Hierarchy

Transitions cannot contain other objects like states can. However, transitions are contained by states. A transition's hierarchy is described in terms of the transition's parent, source, and destination. The parent is the lowest level that contains the source and destination of the transition.Consider the parents for he transitions in the following example:

The following table resolves the parentage of each transition in the preceding example. The Stateflow diagram is represented by the / character. Each level in the hierarchy of states is separated by the period (.) character.

Transition Label
Transition
Parent
Transition
Source
Transition
Destination
switch_off
/
/Power_on.Low.Heat
/Power_off
switch_high
/Power_on
/Power_on.Low.Heat
/Power_on.High
switch_cold
/Power_on.Low
/Power_on.Low.Heat
/Power_on.Low.Cold


Previous page  What Is a Transition? Transition Label Notation Next page

© 1994-2005 The MathWorks, Inc.