You are on page 1of 5

Introduction to the UML

Notation

UML Uses

Visualization
Specification
Constructing
Documenting

Building Blocks of UML

UML Building Blocks

UML E ntities
UML
Building blocks

Th ings

S tructural
thing s

Relationships

Behavioral
things

Class

Interface

Collaboration

Use case

Active Classes

Component

Interaction

State machine

Grouping
things

Ann otational
things

Packages

Note

Diagrams

Dependency

Association

Class diagram

Object diagram

Generalization

Realization

Use case
diagram

Sequence
diagram

Collab oration
diagram

Statechart
diagram

Component
diagram

Activity
diagram

Node

Things: The basic entities in the model.


Relationships: Tie things together.
Diagram: Is a graph of things and their
relationships.

Deployment
diagram

Four Kinds of things

Structural
Behavioral
Grouping
Annotational

Seven Kinds of Structural Things

Class
Interface
Collaboration
Use case

Active classes
Component
Node

Structural Thing: Class


A common description of a set of objects.

Structural Thing: Interface


A collection of operations provided by a
class of a component.

Person
Data
Members
Function
Members

Structural Thing: Collaboration


A collection of structural elements and
behavioral elements.

PersonInterface

Structural Thing: Use case


A sequence actions. A structure
superimposed on top of behavioral things.

Chain of
responsibility

Place Order

Structural Things: Active Class

Structural Things: Component

A class whose objects can initiate a thread


or a process.

A physical packaging of classes, interfaces,


and collaborations.

ActivePerson
Data
Members

Viewer.a

Function
Members

Structural Things: Node


A physical element with memory and
processing power.
Server

Dynamics of the Model:


Behavoral Things
Interactions: The
verbs of the model.
A set of messages
exchanged among a
set of objects.

State Machine: A
sequence of states that
an object goes
through.

Display
On

Organization of a model:
Grouping Things
Package: a general-purpose mechanism for
bundling together structural, behavioral, or
other packages.

Off

Explanations: Annotational
Things
Notes: Explain the model, comments,
constraints, etc.
This class
is for .

Conventions

Relationships in UML
Dependency: Change
to one thing will affect
the other.

Association: Set of
links between objects.

1
employer

Relationships contd
Generalization: Used
for inheritance.
Encodes IS-A
relationship.

Realization: A
specification of a
contract between two
entities.

*
employee

Diagrams

Class diagrams
Object diagrams
Use case diagrams
Sequence diagrams
Collaboration
diagrams

Statechart diagrams
Activity diagrams
Component
diagrams
Deployment
diagrams

Building Blocks of UML


UML
Building blocks

Things

Structural
things

Behavioral
things

Class

Interface

Collaboration

Use case

Active Classes

Component

Node

Interaction

State machine

Relationships

Grouping
things

Packages

Annotational
things

Note

Diagrams

Dependency

Association

Class diagram

Object diagram

Generalization

Realization

Use case
diagram

Sequence
diagram

Collaboration
diagram

Statechart
diagram

Component
diagram

Activity
diagram

Deployment
diagram

You might also like