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

Chapter 11: Deployment View

To show processes on the diagram:

1.

Right−click the desired processor.

2.

Select Show Processes from the pop−up menu.

Adding Devices

A device is hardware with a single purpose or a limited purpose. Devices include items such as dumb terminals, printers, and scanners. Both processors and devices can also be referred to as nodes on a network.

In UML, devices are displayed with this symbol:

To add a device:

1.

Select Device from the toolbox.

2.

Click the Deployment diagram to place the device.

3.

Enter the name of the device.

OR

1.

Select Tools → Create → Device.

2.

Click on the Deployment diagram to place the device.

3.

Enter the name of the device.

OR

1.

Right−click the Deployment view in the browser.

2.

387

Chapter 11: Deployment View

Select New → Device from the pop−up menu.

3.

Enter the name of the device.

To add documentation to a device:

1.

Right−click the desired device.

2.

Select Open Specification from the pop−up menu. This opens the device's specification window.

3.

Select the General tab.

4.

Enter documentation in the Documentation field.

OR

1.

Double−click the desired device. This opens the device's specification window.

2.

Select the General tab.

3.

Enter documentation in the Documentation field.

OR

1.

Select the desired device.

2.

Select Browse → Specification. This opens the device's specification window.

3.

Select the General tab.

4.

Enter documentation in the Documentation field.

OR

1.

Select the desired device.

2.

Enter documentation in the documentation window.

388

Chapter 11: Deployment View

To delete a device from the diagram only:

1.

Select the device in the diagram.

2.

Press Delete.

OR

1.

Select the device in the diagram.

2.

Select Edit → Delete.

Note Note that the device has been removed from the diagram, but still exists in the browser. To delete a device from the model:

1.

Select the device on the Deployment diagram.

2.

Select Edit → Delete from Model, or press Ctrl+D.

OR

1.

Right−click the device in the browser.

2.

Select Delete from the shortcut menu.

Note Rose will remove the device from the Deployment diagram, as well as from the browser.

Adding Device Details

Like processors, there are various details that can be added to a device. The first is the stereotype, which is used to classify the device. The second are the characteristics, which, as with processors, are the physical descriptions of the device.

To assign a stereotype:

1.

Open the desired device's specification window.

2.

Select the General tab, as shown in Figure 11.4.

389

Chapter 11: Deployment View

Figure 11.4: Entering a device stereotype

3.

Enter the stereotype in the Stereotype field.

OR

1.

Select the desired device.

2.

Type the stereotype within double−angle brackets: << Name >>.

To add characteristics to a device:

1.

Open the desired device's specification window.

2.

Select the Detail tab, as shown in Figure 11.5.

390