Stateflow    

Labeling Transitions

The ? character is the default empty label for transitions. Transitions and default transitions follow the same labeling format. Select the transition to display the ? character. Click on the ? to edit the label.

Transition labels have this general format.

Specify, as appropriate, relevant names for event, condition, condition_action, and transition_action. Transitions do not have to have labels. You can specify some, all, or none of the parts of the label.

Label Field
Description
event
Event that causes the transition to be evaluated.
condition
Defines what, if anything, has to be true for the condition action and transition to take place.
condition_action
If the condition is true, the action specified executes and completes.
transition_action
After a valid destination is found and the transition is taken, this action executes and completes.

To apply and exit the edit, deselect the object.

See these sections in Chapter 7, Notations for more information:


 Editing Transition Attach Points Valid Labels