| Stateflow | ![]() |
Return the transitions that have this object as their source
Syntax
Description
The sourcedTransitions method returns all inner and outer transitions that have their source in this object.
Arguments
transitions |
The source object of the returned transitions. Can be of type State, Box, Function, or Junction. |
Returns
transitions |
Array of all transitions whose source is this object |
Example
Suppose that a chart contains three states, A, B, and state A1, which is contained by state A. The chart also has three transitions: one from A to B labeled AtoB, one from B to A labeled BtoA, and one from the inner edge of A to its state A1 (inner transition) labeled AtoA1. If State object sA represents state A, the command sA.sourcedTransitions returns two transitions: the outer transition labeled AtoB and the inner transition labeled AtoA1.
| sfversion | stateflow | ![]() |