Quiz 1 – 8:40 – 8:55 on
LMS
Please observe Silence during
quiz time.
Raise hand in case of any
issues.
Password: IBA@2025SE
System Modeling
using UML
Lecture 5
Topics
What is UML?
Context Diagrams
UML Structural Diagrams
UML Behavioral Diagrams
UML Tools
What is UML?
The unified modeling language
(UML) is a general-purpose visual
modeling language that is
intended to provide a standard
way to visualize the design of a
system.
What is UML?
It is not a programming
language, it is rather a visual
language. We use UML diagrams
to portray the behavior and
structure of a system.
What is UML?
UML is used to represent and
document various aspects of
software systems, business
processes, and system
architectures.
What is UML?
UML was developed by the
Object Management Group
(OMG) and has become the de
facto standard for modeling
software systems and complex
systems in general.
What is UML?
UML diagrams serve as a
common language for project
stakeholders to communicate
and share their understanding of
the system, making it a valuable
tool for software development
teams and system architects.
What is UML?
UML provides a set of graphical
notations and diagrams that allow
software developers, designers, and
other stakeholders to communicate
and visualize the different facets of
a system in a standardized and
easily understandable way.
What is UML?
These notations and diagrams
cover a wide range of aspects,
including:
1- Structural Modelling
2- Behavioral Modelling
UML Diagrams
Context Diagrams
Context diagrams serve as a
foundational tool, helping
designers and stakeholders grasp
the scope and boundaries of a
system under consideration.
Context Diagrams
These diagrams provide a high-
level view, illustrating how the
system interacts with external
entities and the environment.
Context Diagrams
Components:
1. System Itself
2. External Entities
3. Data Flow
Context Diagrams
Context Diagrams
UML Structural Diagrams
These diagrams provide visual
representations of the elements
that make up a system and how
they relate to each other.
UML Structural Diagrams
They are particularly useful for
modeling the architecture,
components, classes, and
relationships within a software
system or any system with a well-
defined structure. Here are some
common UML structural diagrams:
UML Structural Diagrams
1- Class Diagrams:
Class diagrams are one of the most widely
used UML diagrams. They represent the
classes in a system, along with their
attributes (data members) and methods
(functions). Class diagrams show the
relationships between classes, such as
inheritance, association, aggregation, and
composition. They provide a high-level view
of the system's object-oriented structure.
Class Diagram - Sample
UML Structural Diagrams
2- Component Diagrams:
Component diagrams illustrate the
physical or logical components of a
system and their dependencies. These
components can be libraries, modules,
or other software artifacts. Component
diagrams are often used to represent
the system's architecture and help in
managing the system's complexity.
Component Diagram -
Sample
UML Structural Diagrams
3- Deployment Diagram:
Deployment diagrams show the
physical deployment of software
components and artifacts on
hardware nodes or devices. They
help in understanding how software
is distributed across servers or
other hardware resources.
Deployment
Diagram -
Sample
Riddle Break
If five cats can catch five
mice in five minutes, how
long will it take one cat to
catch one mouse?
UML Behavioral Diagrams
These diagrams describe the
behavior of the system or its
components, showing how they
interact, respond to events, and
execute processes.
UML Behavioral Diagrams
1- Use Case Diagrams:
Use case diagrams are used to
capture and visualize the
functional requirements of a
system from the perspective of
its users (actors).
UML Behavioral Diagrams
They represent interactions between
actors and the system through use
cases, which are individual functions
or processes the system can perform.
Use case diagrams help identify the
system's main features and the ways
in which users interact with it.
Use
Case
Diagra
m-
Sample
UML Behavioral Diagrams
2- Activity Diagrams:
Activity diagrams depict the flow of activities
or processes within a system or a specific use
case. They are used to model the sequence of
actions and decisions, showing how various
elements (e.g., actions, control nodes,
decisions) interact. Activity diagrams are
valuable for representing business processes,
workflow, and complex algorithms.
Activity Diagram - Sample
UML Behavioral Diagrams
3- Sequence Diagrams:
Sequence diagrams focus on the interactions
and messages exchanged between objects or
components in a specific scenario or use
case. They show the sequence of actions and
the order in which objects collaborate to
achieve a particular goal. Sequence
diagrams are often used to model the
dynamic aspects of system interactions.
Sequenc
e
Diagram
- Sample
UML Tools
Thank You
Have a Nice Day!!