Stateflow    
Transition Properties

Stateflow API objects of type Transition have the properties listed in the table below. See also Transition Methods.

Property
Type
Acc
Description
ArrowSize
Double
RW
Size of the arrow (default = 10) for this transition.
Chart
Chart
RO
Stateflow chart object containing this transition.
Debug.
Breakpoints.
WhenTested
Boolean
RW
If set to true (default = false) , set a debugging breakpoint to occur when this transition is tested to see whether it is a valid transition or not. Equivalent to selecting the When Tested check box in the properties dialog of this transition.
Debug.
Breakpoints.
WhenValid
Boolean
RW
If set to true (default = false) , set a debugging breakpoint to occur when this transition has tested as valid. Equivalent to selecting the When Valid check box in the properties dialog of this transition.
Description
String
RW
Description of this transition (default = ''). Equivalent to entering a description in the Description field of the properties dialog for this transition.
Destination
State or Junction
RW
Destination state or junction (default = []) of this transition. Assign Destination the destination object for this transition.
You can also use the property Destination to detach the destination end of a transition, through the command t.Destination = [] where t is the Transition object.
DestinationOClock
Double
RW
Location of transition destination connection on state (default = 0). Varies from 0 to 12 for full clock cycle location. Its value is taken as modulus 12 of its assigned value.
Document
String
RW
Document link to this transition (default = '') . Equivalent to entering the Document Link field of the properties dialog for this transition.
DrawStyle
Enum
RW
Set the drawing style for this transition. Set to 'STATIC' (default) for static transitions or 'SMART' for smart transitions. Equivalent to selecting the Smart switch toggle from the context menu for this transition.
FontSize
Double
RW
Size of the font (default = 12) for the label text for this box. This property overrides the default size for this box, which is set by the TransitionFont.Size property of the Chart object containing this box. Equivalent to selecting Font Size > <font size> in the context menu for this box.
Id
Integer
RO
Unique identifier assigned to this transition to distinguish it from other objects loaded in memory.
LabelPosition
Rect
RW
Position and size of this note's box in the Stateflow chart, given in the form of a 1-by-4 array (default is [0 0 8 14]) consisting of the following:
  • (x,y) coordinates for the box's left upper vertex relative to the upper left vertex of the Stateflow diagram editor workspace
  • Width and height of the box
LabelString
String
RW
Label for this transition (default = '?'). Equivalent to typing the label for this transition in its label text field in the diagram editor.
Machine
Machine
RO
Machine containing this transition.
MidPoint
Rect
RW
Position of the midpoint of this transition relative to the upper left corner of the Stateflow diagram editor workspace in an [x y] point array (default = [0 0]) .
Source
State or Junction
RW
Source state or junction of this transition (default = []). Assign Source the source object for this transition.
You can also use the property Source to detach the source end of a transition, through the command t.Source = [] where t is the Transition object.
SourceEndPoint
Rect
RO*
[x y] spatial coordinates for the endpoint of a transition (default = [2 2]). This property is RW (read/write) only for default transitions. For all other transitions it is RO (read-only).
SourceOClock
Double
RW
Location of transition source connection on state (default = 0). Varies from 0 to 12 for full clock cycle location. The value taken for this property is the modulus 12 of the entered value.
Subviewer
Chart or State
RO
State or chart in which this transition can be graphically viewed.
Tag
Any Type
RW
Holds data of any type (default = []) for this transition.


  Note Properties Junction Properties