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

Chapter 11: Deployment View

Figure 11.5: Entering device characteristics

3.

Enter the characteristics in the Characteristics field.

Adding Connections

A connection is a physical link between two processors, two devices, or a processor and a device. Most commonly, connections represent the physical network connections between the nodes on your network. A connection can also be an Internet link between two nodes.

To add a connection:

1.

Select Connection from the toolbox.

2.

Click on the node to connect.

3.

Drag the connection line to another node.

OR

1.

Select Tools → Create → Connection.

2.

Click on the node to connect.

3.

391

Chapter 11: Deployment View

Drag the connection line to another node.

To delete a connection:

1.

Select the connection in the diagram.

2.

Press Delete.

OR

1.

Select the connection in the diagram.

2.

Select Edit → Delete.

Adding Connection Details

Connections may be assigned stereotypes. Connections can also be given characteristics, which are used to provide details about the physical connection. For example, a connection might be a T1 line. This type of note would be added in the Characteristics field.

To assign a stereotype:

1.

Open the desired connection's specification window.

2.

Select the General tab, as shown in Figure 11.6.

392

Chapter 11: Deployment View

Figure 11.6: Entering a connection stereotype

3.

Enter the stereotype in the Stereotype field.

OR

1.

Select the desired connection.

2.

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

To add characteristics to a connection:

1.

Open the desired connection's specification window.

2.

Select the Detail tab, as shown in Figure 11.7.

393

Chapter 11: Deployment View

Figure 11.7: Entering connection characteristics

3.

Enter the characteristics in the Characteristics field.

Adding Processes

A process is a single thread of execution that runs on a processor. An executable file, for example, is considered a process. When adding processes to the diagram, focus on only the processes related to the system being built.

Processes can be displayed on a Deployment diagram or hidden from view. If they are displayed, they are listed directly below the processor(s) on which they are run.

Processes may be assigned a priority. If the processor on which they are run uses preemptive scheduling, the priority of the process will determine when it can run.

To add a process:

1.

Right−click the desired processor in the browser.

2.

Select New → Process from the pop−up menu.

3.

Enter the name of the new process.

OR

1.

394

Chapter 11: Deployment View

Open the desired processor's specification window.

2.

Click the Detail tab.

3.

Right−click in the Processes box.

4.

Select Insert from the pop−up menu.

5.

Enter the name of the new process.

To add documentation to a process:

1.

Open the desired processor's specification window.

2.

Select the Detail tab.

3.

Enter documentation in the Documentation field.

OR

1.

Double−click the desired process in the browser.

2.

Select the Detail tab.

3.

Enter documentation in the Documentation field.

OR

1.

Right−click the desired process in the browser.

2.

Select Open Specification from the pop−up menu.

3.

 

Select the Detail tab.

4.

 

 

Enter documentation in the Documentation field.

To add a priority to a process:

1.

395

Chapter 11: Deployment View

Open the desired processor's specification window.

2.

Select the General tab, as shown in Figure 11.8.

Figure 11.8: Entering process information

3.

Enter the priority in the Priority field.

To delete a process:

1.

Right−click the desired process in the browser.

2.

Select Delete from the pop−up menu.

OR

1.

Open the desired processor's specification.

2.

Click the Detail tab.

3.

Right−click the desired process.

4.

396