Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Mastering UML with Rational Rose 2002.pdf
Скачиваний:
137
Добавлен:
02.05.2014
Размер:
9.68 Mб
Скачать

Chapter 3: Business Modeling

OR

1.

Select the use case on a Use Case diagram.

2.

Press Ctrl+B.

Assigning a Priority to a Business Use Case

To help you manage the project, you may want to prioritize the business use cases. You could use the priority, for example, to determine in what order the business use cases will be analyzed and documented. The Rose specifications window provides a field called Rank, which can be used to prioritize the business use cases. It does not set up a numbering scheme for you, but you can use letters, numbers, or any other way of prioritizing the use cases.

To assign a priority to a business use case:

1.

Right−click the business use case in the browser or on the Use Case diagram.

2.

Select Open Specification from the shortcut menu.

3.

On the General tab, enter the priority in the Rank field.

Viewing Diagrams for a Business Use Case

As you analyze a business use case, you may create a number of activity diagrams to document the workflow. Using the specification window or the browser, you can see a list of all of the diagrams for this particular business use case. Note that this list does not show you on which diagrams the use case resides; instead it shows you which diagrams contain some details for the use case.

To view the diagrams for a business use case:

1.

Right−click the business use case in the browser or on a Use Case diagram.

2.

Select Open Specification from the shortcut menu.

3.

The diagrams will be listed on the Diagrams tab of the specification window, as shown in Figure 3.11. In this example, the use case has five activity diagrams.

83

Chapter 3: Business Modeling

Figure 3.11: Diagrams tab of a use case specification window

OR

Look through the browser. The diagrams for the use case will appear underneath the business use case in the browser, as shown in Figure 3.12.

Figure 3.12: Diagrams for a use case

84

Chapter 3: Business Modeling

To open a diagram for a use case:

Double−click the diagram name on the Diagrams tab of the use case specification window.

OR

Right−click the diagram name on the Diagrams tab of the use case specification window and select Open Diagram from the shortcut menu.

OR

Double−click the diagram in the browser.

To add a diagram to a use case:

1.

Right−click anywhere inside the Diagrams tab of the use case specification window.

2.

From the shortcut menu, select the type of diagram (Use Case, Sequence, Collaboration, Statechart, Activity, or Class) you want to add.

3.

Enter the name of the new diagram.

OR

1.

Right−click the use case in the browser.

2.

Select New → (Collaboration Diagram, Sequence Diagram, Class Diagram, Use Case Diagram, Statechart Diagram, Activity Diagram) from the shortcut menu.

3.

Enter the name of the new diagram.

To delete a diagram for a use case:

1.

Right−click the diagram name on the Diagrams tab of the use case specification window.

2.

Select Delete from the shortcut menu.

OR

1.

Right−click the diagram name in the browser.

2.

85

Chapter 3: Business Modeling

Select Delete from the shortcut menu.

Viewing Relationships for a Business Use Case

A relationship is a link between the business use case and a business actor or worker. It shows which business actor or worker initiates the business use case. As with diagrams, you can view the relationships for a particular business use case either through the specifications window or directly in the Rose browser. In the specifications window, the relationships are listed in the Relations tab, as shown in Figure 3.13.

Figure 3.13: Relations tab of a use case specification window

To view the relationships for a use case:

1.

Right−click the use case in the browser or on a Use Case diagram.

2.

Select Open Specification from the shortcut menu.

3.

The relationships will be listed on the Relations tab. The actor or worker who initiates the use case (or who is a client of the use case's functionality) will be listed in the Client column. The business use case itself (which supplies the functionality) is listed in the Supplier column.

OR

1.

Select the use case on a Use Case diagram.

2.

Select Report → Show Usage.

OR

Simply look at the hierarchy in the browser. The relationships for the business use case will be in the treeview below the use case itself.

86