Main Content

outerTransitions

Identify outgoing transitions with specified source

Description

example

transitions = outerTransitions(source) returns an array of Stateflow.Transition objects that correspond to the outer transitions of the specified source state. An outer transition is a transition that exits the source state.

Examples

collapse all

Suppose that ch is the Stateflow.Chart object that corresponds to this chart.

Stateflow chart with a hierarchy of states. The chart contains states A and C. State A contains an inner state called B.

Find the Stateflow.State object named A.

sA = find(ch,"-isa","Stateflow.State",Name="A");

Identify the transition whose source is state A and whose destination is outside of state A. Display the name of the destination.

tr = outerTransitions(sA);
tr.Destination.Name
ans =

    'C'

Input Arguments

collapse all

Source state, specified as a Stateflow.State object.

Version History

Introduced before R2006a