0% found this document useful (0 votes)
41 views5 pages

UML Part 2

UML relationships show how elements are associated and describe an application's functionality. There are four main types: dependency shows how changing one element affects another; association links model elements; generalization depicts inheritance between classes; and realization defines behavior implementation. UML diagrams graphically represent models using symbols, and are classified into structural, behavioral, and interaction diagrams depicting different perspectives.

Uploaded by

Luckysingh Negi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views5 pages

UML Part 2

UML relationships show how elements are associated and describe an application's functionality. There are four main types: dependency shows how changing one element affects another; association links model elements; generalization depicts inheritance between classes; and realization defines behavior implementation. UML diagrams graphically represent models using symbols, and are classified into structural, behavioral, and interaction diagrams depicting different perspectives.

Uploaded by

Luckysingh Negi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

UML Relationships

Relationship is another most important building block of UML.


It shows how the elements are associated with each other and this association describes the functionality of an application.
There are four types of relationships given below:

1. Dependency
Dependency is a kind of relationship in which a change in target element affects the source element, or simply we can say the source element is
dependent on the target element.

It is one of the most important notations in UML.

It depicts the dependency from one entity to another.

It is denoted by a dotted line followed by an arrow at one side.

2. Association
A set of links that associates the entities to the UML model.

It tells how many elements are actually taking part in forming that relationship.

It is denoted by a dotted line with arrowheads on both sides to describe the relationship with the element on both sides.
3. Generalization
It portrays the relationship between a general thing (a parent class or superclass) and a specific kind of that thing (a child class or subclass).

It is used to describe the concept of inheritance.

It is denoted by a straight line followed by an empty arrowhead at one side.

4. Realization
It is a semantic kind of relationship between two things, where one defines the behavior to be carried out, and the other one implements the
mentioned behavior.

It exists in interfaces.

It is denoted by a dotted line with an empty arrowhead at one side.


Diagrams

The diagrams are the graphical implementation of the models that incorporate symbols and text.

Each symbol has a different meaning in the context of the UML diagram.

There are thirteen different types of UML diagrams that are available in UML 2.0, such that each diagram has its own set of a symbol and
each diagram manifests a different dimension, perspective, and view of the system.

UML diagrams are classified into three categories that are given below:

1. Structural Diagram
2. Behavioral Diagram
3. Interaction Diagram

Structural Diagram
It represents the static view of a system by portraying the structure of a system.
It shows several objects residing in the system.
Following are the structural diagrams given below:
1. Class diagram
2. Object diagram
3. Package diagram
4. Component diagram
5. Deployment diagram

Behavioral Diagram
It depicts the behavioral features of a system.
It deals with dynamic parts of the system.
It encompasses the following diagrams:
1. Activity diagram
2. State machine diagram
3. Use case diagram
Interaction diagram
It is a subset of behavioral diagrams.
It depicts the interaction between two objects and the data flow between them.
Following are the several interaction diagrams in UML:
1. Timing diagram
2. Sequence diagram
3. Collaboration diagram

You might also like