Create transition
transition_new = Stateflow.Transition(parent)
The Stateflow.Transition
method is a constructor method for creating a
transition in a parent chart, state, box, or graphical function. This method returns
a handle to the new Transition
object.
| Handle to parent chart, state, box, or function of new transition |
| Handle to Transition object for the new transition |
If sA
is a handle to a State object for the
existing state A
, the following command creates
a new transition parented by state A
:
transition_new = Stateflow.Transition(sA)
The new transition is unlabeled and appears in the upper left
corner of the chart. transition_new
is a handle
to the Transition object for the new transition that you use to rename
the transition, set its properties, and execute its methods.