UNIT 1 - UML Intro
UNIT 1 - UML Intro
Ms Devibala Subramanian
Assistant Professor
PG & Research Department of Computer Science
Sri Ramakrishna College of Arts and Science
Coimbatore
Introduction to UML
A lot of time is saved down the line when teams can visualize
processes, user interactions, and the static structure of the system
Different Types of UML Diagrams
Class Diagram
They represent internal structure of a structured classifier making the use of parts,
ports, and connectors.
They are similar to class diagrams except they represent individual parts in detail
as compared to the entire class.
Object Diagram
Since object diagrams depict behaviour when objects have been instantiated, we
are able to study the behaviour of the system at a particular instant.
We depict actual classifiers and their relationships making the use of class
diagrams.
On the other hand, an Object Diagram represents specific instances of classes and
relationships between them at a point of time.
Component Diagram
Component Diagrams become essential to use when we design and build complex
systems.
Interfaces are used by components of the system to communicate with each other.
Deployment Diagram
Deployment Diagrams are used to represent system hardware and its software.
It tells us what hardware components exist and what software components run on
them.
They are primarily used when a software is being used, distributed or deployed
over multiple machines with different configurations.
Package Diagram
We use Package Diagrams to depict how packages and their elements have been
organized.
Packages help us to organise UML diagrams into meaningful groups and make the
diagram easy to understand.
They are primarily used to organise class and use case diagrams.
Behavioral UML Diagrams
A state diagram is used to represent the condition of the system or part of the
system at finite instances of time.
It’s a behavioral diagram and it represents the behavior using finite state
transitions.
State diagrams are also referred to as State machines and State-chart Diagrams
We can also use an activity diagram to refer to the steps involved in the execution
of a use case.
We model sequential and concurrent activities using activity diagrams.
Use Case Diagrams are used to depict the functionality of a system or a part of a
system.
They are widely used to illustrate the functional requirements of the system and
its interaction with external agents(actors).
A use case diagram gives us a high level view of what the system or a part of the
system does without going into implementation details.
Sequence Diagram
We can also use the terms event diagrams or event scenarios to refer to a sequence
diagram.
Sequence diagrams describe how and in what order the objects in a system
function.
Timing Diagram are a special form of Sequence diagrams which are used to
depict the behavior of objects over a time frame.
We use them to show time and duration constraints which govern changes in
states and behavior of objects.
Elements:
Elements:
Activities: Tasks or functions.
Define how the system will fulfill the requirements gathered during
the analysis phase.
Class Diagrams:
Elements:
Objects/Participants: Entities involved in the interaction.
Lifelines: Vertical dashed lines representing the life of an object
during the sequence.
Messages: Horizontal arrows indicating communication between
objects.
Example: A sequence diagram for processing an order might show
interactions between Customer, Order System, Payment Gateway, and
Shipping Service.
Component Diagrams:
Purpose: Show the organization and dependencies among
components.
Elements:
Components: Modular parts of the system with provided and required
interfaces.
Deployment Diagrams:
Elements:
Nodes: Physical hardware or software execution environments.
Artifacts: Deployable pieces of software.
Elements: