Rational Software Corp.

TOC PREV NEXT INDEX



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:

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.

To move a script:

1 Select the message and drag it.

    The script moves next to the message.

2 Select only the script and drag it.

    The script moves independently of the message.

To detach a script:

1 Select either a script or a message.

2 Click Edit > Detach Script.

To delete messages, scripts, or objects:

To undo:


Focus of Control

Focus 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.
TOC PREV NEXT INDEX