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

Chapter 11: Deployment View

Select Delete from the pop−up menu.

Exercise

In this exercise, we'll create a Deployment Diagram.

Problem Statement

The project team had done quite a bit of analysis and design up to this point. The use cases, object interaction, and components were all nicely defined. However, the network management unit needed to know which components would reside on which machines. So, the team put together a Deployment diagram for the system.

Create Deployment Diagram

Create the Deployment diagram for the Order Processing system. Your completed diagram should look like Figure 11.9.

Figure 11.9: Deployment diagram for the Order Processing system

Exercise Steps:

Add the Nodes to the Deployment Diagram

1.

Double−click the Deployment view in the browser to open the Deployment diagram.

2.

Select Processor from the toolbox.

3.

397

Chapter 11: Deployment View

Click the diagram to place the processor.

4.

Enter the processor name as Database Server.

5.

Repeat steps 2–4 to add the following processors:

Application Server

Client Workstation #1

Client Workstation #2

Web Server

6.

Select Device from the toolbox.

7.

Click the diagram to place the device.

8.

Enter the device name as Printer.

Add Connections

1.

Select Connection from the toolbox.

2.

Click on the Database Server processor.

3.

Drag the connection line to the Application Server processor.

4.

Repeat steps 1–3 to add the following connections:

 

Application Server processor to Web Server processor

 

 

Web Server processor to Client Workstation #1 processor

 

 

Web Server processor to Client Workstation #2 processor

398

Chapter 11: Deployment View

Application Server processor to Printer device

Add Processes

1.

Right−click the Application Server processor in the browser.

2.

Select New → Process from the menu.

3.

Enter the process name as MainProgram.

4.

Repeat steps 1–3 to add the following processes:

For the Client Workstation #1 processor: Web Browser

For the Client Workstation #2 processor: Web Browser

For the Database Server processor: Oracle Server

For the Web Server: Internet Information Server

Show the Processes

1.

Right−click the Application Server process.

2.

Select Show Processes from the menu.

3.

Repeat steps 1 and 2 to show the processes for the following processors:

Client Workstation #1 processor

Client Workstation #2 processor

Web Server

Database Server

399