Stateflow | ![]() ![]() |
About Supertransitions
A supertransition is a transition between different levels in a chart, for example, between a state or junction in a top-level chart and a state or junction in one of its subcharts or between states residing in different subcharts at the same or different level in a diagram. Stateflow allows you to create supertransitions that span any number of levels in your chart, for example, from a junction at the top-level to a state that resides in a subchart several layers deep in the chart.
The point where a supertransition enters or exits a subchart is called a slit. Slits divide a supertransition into graphical segments. For example, the following diagram shows two super transitions as seen from the perspective of a subchart and its parent chart, respectively.
In this example, supertransition t1 goes from state A in the parent chart to state C in the subchart and supertransition t2 goes from state C in the subchart to state B in the parent chart. Note that both segments of t1 and t2 have the same label.
![]() | Editing a Subchart | Drawing a Supertransition | ![]() |