Download Stateflow User's Guide

Transcript
2
Using the Graphics Editor
Working with States
What Can You Do with States?
You can:
• Specify decomposition
• Create/delete
• Label
• Group/ungroup
• Show/hide
• Resize
• Change font size
• Change arrowhead size
• Move
• Invoke the state properties dialog box to:
- Use the hypertext link to the state or the parent
- Specify debugger breakpoints
- Add or modify the label
- Add a description
- Link to a document
Specifying Decomposition
States that contain other states are called superstates. A superstate has either
Parallel (AND) or Exclusive (OR) decomposition. The decomposition of the
Stateflow diagram can be set if it contains at least one state. Specify state
decomposition by selecting the superstate and choosing either the Parallel
(AND) or Exclusive (OR) menu items from the right mouse button shortcut
menu. In the case of the Stateflow diagram, display the shortcut menu by
clicking the right mouse button in an area outside the borders of all states. The
2-24