CSC 302 Lecture Note 2017 - 2018 Complete
CSC 302 Lecture Note 2017 - 2018 Complete
CSC 302 Lecture Note 2017 - 2018 Complete
THINGS
Things are the most important building blocks of
UML. Things can be:
Structural
Behavioural
Grouping
Annotational
Structural things define the static part of the
model. They represent the physical and
conceptual elements. Following are the brief
descriptions of the structural things.
i. Class − It represents a set of objects having
similar responsibilities.
Node Notation
A node in UML is represented by a
square box as shown in the
following figure with a name. It is
used to represent the physical part
of a system such as the server,
network, etc.
Behavioural Things
UML has a set of powerful features to represent
the dynamic part of software and non-software
systems. These features include :
(i) interactions and (ii) state machines.
Interactions can be of two types −
i. Sequential (Represented by sequence
diagram)
ii. Collaborative (Represented by collaboration
diagram)
Interaction Notation
Interaction is basically a
message exchange
between two UML
components.
The diagram shows
different notations used
in an interaction.
It is used to represent
the communication
among the components
of a system.
State Machine Notation
State machine describes
the different states of a
component in its life
cycle. The notations are
described in the
diagram.
It is used to describe
different states of a
system component. The
state can be active, idle,
or any other depending
upon the situation.
Grouping Things
Organizing the UML models is one of the most
important aspects of the design. In UML, there is
only one element available for grouping and that is
package.
Package Notation
Package notation is shown in the following figure
and is used to wrap the components of a system.
Annotational Things
In any diagram, explanation of different elements
and their functionalities are very important.
Hence, UML has notes notation to support this
requirement.
Note Notation
This notation is shown in the following figure.
These notations are used to provide necessary
information of a system.
Relationships
A model is not complete unless the relationships
between elements are described properly.
The Relationship gives a proper meaning to a UML
model. Following are the different types of
relationships available in UML.
Dependency
Association
Generalization
Extensibility
Dependency Notation
Dependency is an important aspect in UML
elements. It describes the dependent elements
and the direction of dependency.
It is represented by a dotted arrow as shown in
the following figure. The arrow head represents
the independent element and the other end
represents the dependent element.