You are on page 1of 3

Software Engineering

UML Physical Diagrams


Component diagram
Physical Diagrams Various components in a system, and their
dependencies
Explains the structure of a system
Deployment diagram
Physical relationships among software and
Component diagram hardware in a delivered systems
Deployment diagram Explains how a system interacts with the
“Package Diagram” external environment

1 2

Component Diagram Component Diagrams (cont.)


Component


Physical module of Other elements


code Body Processes


A package Contained into




A collection of components


classes Specification
Thread, process,…


Dependency Programs


Dependency among Language-dependent




components Component B
Applet, Application,…


Change impact


Subsystems


Communication


Organising


dependency
components into


Compilation (nested) packages


dependency
3 4

Example of Component Diagram Deployment diagram


Nodes


groups.xml types.xml
Some kind of computational


Processor
unit
DB access DB access 

Programmable resource
User


Where components can be


Profile connection executing
Manager
ii_group ii_UP
Hardware resource


Profile Management
Group Administrator
Management Application


Usable by components
Device Connections


ii_
Communication
Communication paths over


which the system will interact


Communication
Handling

5 6

© P. Lago - Politecnico di Torino 1


Software Engineering

Deployment Diagrams Example of Deployment Diagram


Application
Physical layout of the various hardware Server
components (nodes) Provider servers
Processor: capable of executing programs
Device: component with no computing power
PC1 PC3
Distribution of LAN
Modem
connection
Executable PC2 Access
PC Server
Programs on nodes Client
Client
Node classes and instances
access
LAN connection

Disk Vocal
Device gateway
Cisco 3640

7 8

Example of combined Structural


Combining the two Diagrams
Diagram
Place the Component Diagram on top of the Application Server
Deployment Diagram groups.xml types.xml

Which components run on which nodes? DB access DB access

System awareness of components ii_group


Profile GURU
Component↔Interface communication details ii_guru
ii_guru Management
Communication
PC1 PC3

Group Administrator
Management LAN Application

PC2 AS
CH
Proxy
Server

LAN connection

9 VG Cisco 3640 10

When to use Physical Diagrams?


When I have to show physical information that is
different from the associated logical information Package Diagram
Use UML for complex systems
Use informal draws (...) if the diagrams do not
get too disorganized or messy

From Class Diagram

11 12

© P. Lago - Politecnico di Torino 2


Software Engineering

Package Diagram Examples of Package Diagram


It is any diagram showing packages of classes Example #1
St udents Academic
and the dependencies among them Employees

It is just a Class Diagram showing only


packages and inter-dependencies Domain

Dependency
Mailing List
Changes to the definition of one element may Manager Orders Customers

cause changes to the other


Message sending, structural composition,
usage,…
Example #2 Mailing List UI Mailing List
Manager

13 14

© P. Lago - Politecnico di Torino 3

You might also like