UML Diagrams PDF
UML Diagrams PDF
Bharath Padmanabhan
Introduction .................................................................................................................................................. 1
Modeling ....................................................................................................................................................... 1
Static (or structural) view.......................................................................................................................... 1
Dynamic (or behavioral) view ................................................................................................................... 1
Diagrams Overview ....................................................................................................................................... 1
Structure Diagrams ................................................................................................................................... 2
1. Class Diagram ................................................................................................................................ 2
2. Component Diagram ..................................................................................................................... 2
3. Composite Structure Diagram....................................................................................................... 2
4. Deployment Diagram .................................................................................................................... 3
5. Object Diagram ............................................................................................................................. 3
6. Package Diagram ........................................................................................................................... 4
7. Profile Diagram ............................................................................................................................. 4
Behavior Diagrams .................................................................................................................................... 5
1. Activity Diagram ............................................................................................................................ 5
2. State Machine Diagram................................................................................................................. 6
3. Use Case Diagram ......................................................................................................................... 6
Interaction Diagrams ................................................................................................................................ 7
1. Communication Diagram .............................................................................................................. 7
2. Interaction Overview Diagram ...................................................................................................... 8
3. Sequence Diagram ........................................................................................................................ 9
4. Timing Diagram ............................................................................................................................. 9
References .................................................................................................................................................. 10
Unified Modeling Language (UML) Overview
Introduction
Unified Modeling Language (UML) is a standardized general-purpose modeling language in the field of
object-oriented software engineering. UML includes a set of graphic notation techniques to create
visual models of object-oriented software systems. UML combines techniques from data modeling,
business modeling, object modeling, and component modeling and can be used throughout the
software development life-cycle and across different implementation technologies.
Modeling
There is a difference between a UML model and the set of diagrams of a system. A diagram is a partial
graphic representation of a system’s model. The model also contains documentation that drives the
model elements and diagrams (such as written use cases).
Diagrams Overview
UML 2.2 has 14 types of diagrams divided into multiple categories as shown in the figure below.
Structure Diagrams
These diagrams emphasize the things that must be present in the system being modeled. Since they
represent the structure, they are used extensively in documenting the software architecture of software
systems.
1. Class Diagram
Describes the structure of a system by showing the system’s classes, their attributes, and the
relationships among the classes.
2. Component Diagram
Describes how a software system is split-up into components and shows the dependencies among
these components.
4. Deployment Diagram
Describes the hardware used in system implementations and the execution environments and
artifacts deployed on the hardware.
5. Object Diagram
Shows a complete or partial view of the structure of an example modeled system at a specific time.
6. Package Diagram
Describes how a system is split-up into logical groupings by showing the dependencies among these
groupings.
7. Profile Diagram
Operates at the metamodel level to show stereotypes as classes with the <<stereotype>>
stereotype, and profiles as packages with the <<profile>> stereotype. The extension relation (solid
line with closed, filled arrowhead) indicates what metamodel element a given stereotype is
extending.
Behavior Diagrams
These diagrams emphasize what must happen in the system being modeled. Since they illustrate the
behavior of a system, they are used extensively to describe the functionality of software systems.
1. Activity Diagram
Describes the business and operational step-by-step workflows of components in a system. An
activity diagram shows the overall flow of control.
Interaction Diagrams
These diagrams are a subset of behavior diagrams, emphasizing the flow of control and data among the
things in the system being modeled.
1. Communication Diagram
Shows the interactions between objects or parts in terms of sequenced messages. They represent a
combination of information taken from Class, Sequence, and Use Case Diagrams describing both the
static structure and dynamic behavior of a system.
3. Sequence Diagram
Shows how objects communicate with each other in terms of a sequence of messages. Also
indicates the lifespans of objects relative to those messages.
4. Timing Diagram
A specific type of interaction diagram where the focus is on timing constraints. Timing diagrams
model sequence of events and their effects on states and property values. Time flows along a
horizontal axis from left to right. They can be used to show method execution profiling or
concurrency scenarios.
References
UML 2 Tutorial
http://www.sparxsystems.com/resources/uml2_tutorial/