![]() |
![]() |
![]() |
![]() |
Scripts Scripts
Scripts are used to enhance messages on sequence diagrams; they are text fields that attach to messages.
To create and attach a script:
- 1 Click the message icon and drag it between two objects.
- 2 Create text by either:
- Using the ABC icon.
- Clicking Tools > Create >Text.
- 3 Select one or more labels. Press the ctrl or shift key to enable multiple selections.
- 4 Select one message.
- 5 Click Edit > Attach Script to attach the script to the message.
- 1 Select the message and drag it.
- 2 Select only the script and drag it.
- 1 Select either a script or a message.
- 2 Click Edit > Detach Script.
To delete messages, scripts, or objects:
- Messages
Click the message, and then click Edit > Delete to delete all dependent messages and attached scripts.
- Scripts
- Objects
- Click Edit > Undo to reverse the latest change.
Focus of ControlFocus of Control (FOC) is an advanced notational technique that enhances sequence diagrams. This technique shows the period of time during which an object is performing an action, either directly or through an underlying procedure.
FOC is portrayed through narrow rectangles that adorn lifelines (the vertical lines descending from each object). The length of an FOC indicates the amount of time it takes for a message to be performed. When you move a message vertically, each dependent message will move vertically as well. Also, you can move an FOC vertically off the source FOC to make it detached and independent.
Figure 74 illustrates a sequence diagram with FOC notation and scripts.
Figure 74 Focus of Control Diagram Example
Rational Software Corporation
http://www.rational.com support@rational.com docs@us.ibm.com Copyright © 1993-2000, Rational Software Corporation. All rights reserved. |
![]() |
![]() |
![]() |
![]() |