Component, Deployment and Package Diagrams
Component, Deployment and Package Diagrams
component,deployment and
package diagrams
UML
Component Diagram
Component Diagram
required interfaces.
6
Component Diagram
Two more important concepts used in component diagrams are:
■ Ports
■ Abstraction used to model access points for allowing the external
environment to access the component’s services and for allowing
components to interact with their external environment.
■ Modeled using a small square at the boundary of a classifier, in this
case, a component.
■ Ports can be named, e.g., port names below are Port 1 and Port 2.
■ Delegation connectors 7
8
Component Diagram
14
PACKAGE DIAGRAMS
Packages
■ Logical grouping of UML elements
■ Simplifies UML diagrams
■ Groups related elements into a single
higher-level element
■ Dependency relationships 16
A PACKAGE
17
A DEPENDENCY RELATIONSHIP
Modification Dependency
■ Indicates that a change in one package could cause a
change to be required in another package.
■ Example:
■ A change in one method will cause the interface for all
19
System
20
Importing and Accessing Packages
21
Steps for Identifying Packages and
Building Package Diagrams