DFD, ERD and UML Diagrams

Download as pdf or txt
Download as pdf or txt
You are on page 1of 32

Instructor: Shazmina Gull

Course: Software Requirement


Engineering (SENG-01302)
Department of Software Engineering
The Islamia University of Bahawalpur,
Rahim Yar Khan Campus
Data Flow Diagram (DFD)
➢Purpose:
To represent the flow of data and to determine the scope of
system and related to its elements.
➢Focus:
Physical data in system and process modeling.
➢Use:
DFD chart the progress of information through a system.
Helps in analysis

11/8/2023 Instructor: Shazmina Gull 2


DFD symbols and levels
DFD Symbols Level 1

Level 0/ Context Level

***Level 2 described the data flow in modules


11/8/2023 Instructor: Shazmina Gull 3
DFD
Example

11/8/2023 Instructor: Shazmina Gull 4


Entity Relationship (ER) Diagram
➢Purpose:
To represent the entities, attributes, and relationships in a
database.
➢Focus:
Data modeling, entities, relationships.
➢Use:
It is used for database design and modeling, helping to visualize
data structures and their connections.
Database design, Database troubleshooting, Business information
systems, Business process re-engineering (BPR), Data structure
visualization
11/8/2023 Instructor: Shazmina Gull 5
Components & Features
of ER Diagram

11/8/2023 Instructor: Shazmina Gull 6


ER
Diagram
Example

11/8/2023 Instructor: Shazmina Gull 7


UML Diagrams

11/8/2023 Instructor: Shazmina Gull 8


Use Case Diagram
➢Purpose:
To illustrate how external actors interact with a system and the
system's use cases or functionalities.
➢Focus:
System interactions, actors, use cases.
➢Use:
It is used for understanding system requirements and
communication between users and the system.
Requirements analysis, user-system communication.
11/8/2023 Instructor: Shazmina Gull 9
Symbols of
Use Case
Diagram

11/8/2023 Instructor: Shazmina Gull 10


Use Case
Diagram
Example

11/8/2023 Instructor: Shazmina Gull 11


Activity Diagram
➢Purpose:
To model and visualize the flow of activities or processes within a
system.
➢Focus:
Workflow, activities, decisions, transitions.
➢Use:
It is used for business process modeling, workflow analysis, and
representing system behavior.
Process modeling, behavior visualization.

11/8/2023 Instructor: Shazmina Gull 12


Symbols &
Components
of Activity
Diagram

11/8/2023 Instructor: Shazmina Gull 13


Activity
Diagram -
Modeling a
Word
Processor

11/8/2023 Instructor: Shazmina Gull 14


Collaboration/ Communication Diagram
➢Purpose:
To show how objects or components interact and communicate
with each other to achieve a specific task.
➢Focus:
Object interactions, messages.
➢Use:
It is used for visualizing object interactions and collaborations in
a particular scenario.
Visualizing object collaborations in scenarios.
11/8/2023 Instructor: Shazmina Gull 15
Collaboration
Diagram
Design
Elements

11/8/2023 Instructor: Shazmina Gull 16


Collaboration Diagram Example

11/8/2023 Instructor: Shazmina Gull 17


Block Diagram
➢Purpose:
To represent a high-level overview of a system or its components
using blocks to depict major functions.
➢Focus:
High-level system components.
➢Use:
It is used for system architecture design, illustrating system
structure, and component relationships.
System architecture, structural overview.
11/8/2023 Instructor: Shazmina Gull 18
Symbols of Block Diagram

11/8/2023 Instructor: Shazmina Gull 19


Block
Diagram of
Processing
Unit

11/8/2023 Instructor: Shazmina Gull 20


Sequence Diagram
➢Purpose:
To depict the interactions and order of messages between objects
or components over time.
➢Focus:
Object interactions, message sequence.
➢Use:
It is used for modeling dynamic behavior, especially in scenarios
where the sequence of events matters.
Dynamic behavior modeling, timing.
11/8/2023 Instructor: Shazmina Gull 21
Sequence Diagram Components

11/8/2023 Instructor: Shazmina Gull 22


Sequence Diagram Example

11/8/2023 Instructor: Shazmina Gull 23


Class Diagram
➢Purpose:
To represent the static structure of a system, including classes,
attributes, methods, and their relationships.
➢Focus:
Static structure, classes, attributes, methods.
➢Use:
It is used for designing the overall structure of a system,
emphasizing the class hierarchy.
Designing class hierarchies, data modeling.
11/8/2023 Instructor: Shazmina Gull 24
Class Diagram Notations

11/8/2023 Instructor: Shazmina Gull 25


Class
Diagram
for ATM

11/8/2023 Instructor: Shazmina Gull 26


Object Diagram
➢Purpose:
To show a specific snapshot of instances of classes and their
relationships at a particular moment in time.
➢Focus:
Specific object instances and their relationships.
➢Use:
It is used for illustrating specific object instances in a system for
a given scenario.
Illustrating object snapshots in scenarios.
11/8/2023 Instructor: Shazmina Gull 27
Object Diagram Notations

11/8/2023 Instructor: Shazmina Gull 28


Object Diagram Example

11/8/2023 Instructor: Shazmina Gull 29


Component Diagram
➢Purpose:
To illustrate the physical or logical components of a system and
their relationships.
➢Focus:
System components, dependencies.
➢Use:
It is used for system architecture, deployment planning, and
understanding the organization of components.
Architecture, component organization, deployment.
11/8/2023 Instructor: Shazmina Gull 30
Component
Diagram
Notations

11/8/2023 Instructor: Shazmina Gull 31


Component
Diagram
Example

11/8/2023 Instructor: Shazmina Gull 32

You might also like