0% found this document useful (0 votes)
22 views

Chapter 6. Data Modeling Data Flow Diagram

The document discusses data modeling and data flow diagrams (DFDs). It defines logical and physical models, and what a DFD is - a graphical representation of how data moves between external entities, processes, and data stores in a system. It describes the key components of a DFD - external agents, data stores, and processes. It provides examples of simple DFDs and discusses best practices like using data packets and naming conventions. It also covers process decomposition, with level 0, 1 and 2 diagrams, and an overview of structured analysis techniques.

Uploaded by

kaosar alam
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Chapter 6. Data Modeling Data Flow Diagram

The document discusses data modeling and data flow diagrams (DFDs). It defines logical and physical models, and what a DFD is - a graphical representation of how data moves between external entities, processes, and data stores in a system. It describes the key components of a DFD - external agents, data stores, and processes. It provides examples of simple DFDs and discusses best practices like using data packets and naming conventions. It also covers process decomposition, with level 0, 1 and 2 diagrams, and an overview of structured analysis techniques.

Uploaded by

kaosar alam
Copyright
© © All Rights Reserved
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 41

Chapter 6.

Data Modeling
Data Flow Diagram

Prepared by:
Dr. Muhammad Iqbal Hossain
Assistant Professor,
Dept. of CSE, BRAC University
Models: Logical and Physical
Model – a pictorial representation of reality.
Just as a picture is worth a thousand words, most
models are pictorial representations of reality.

Logical model – a Physical model – a technical


nontechnical pictorial pictorial representation that
representation that depicts depicts what a system is or
what a system is or does. does and how the system is
Synonyms or essential implemented. Synonyms are
model, conceptual model, implementation model and
and business model. technical model.
9-2
@ Dr. Muhammad Iqbal Hossain
What is a Data Flow Diagram?
•A data flow diagram (DFD) is a graphical
representation of the movement of data between
external entities, processes and data stores within a
system.

• Simply put, DFD’s show how data moves through


an information system.

9-3
@ Dr. Muhammad Iqbal Hossain
External Agents
External agent – an outside person, unit, system, or
organization that interacts with a system. Also called
an external entity.

• External agents define the “boundary” or


scope of a system being modeled.
• As scope changes, external agents can
become processes, and vice versa.

Gane and Sarson shape DeMarco/Yourdon shape


9-4
@ Dr. Muhammad Iqbal Hossain
Data Stores
Data store – stored data intended for later use.
Synonyms are file and database.
• Frequently implemented as a file or database.
• A data store is “data at rest” compared to a data flow
that is “data in motion.”
• Almost always one of the following:
Gane and Sarson shape
• Persons, Places, Objects etc

• Data stores depicted on a DFD store


all instances of data entities
(depicted on an ERD)
DeMarco/Yourdon shape
9-5
@ Dr. Muhammad Iqbal Hossain
Process
Process – work performed by a system in
response to incoming data flows or
conditions. A synonym is transform.
• All information systems include
processes - usually many of them
• Processes respond to business
Gane and Sarson shape
events and conditions and transform
data into useful information
• Modeling processes helps us to understand the
interactions with the system's environment, other
systems, and other processes.
• Named with a strong action verb followed by object
clause describing what the work is performed on/for .
9-6
@ Dr. Muhammad Iqbal Hossain
Data Flows & Control Flows
Data flow – data that is input to or output
from a process.
Data flow name
• A data flow is data in motion
• A data flow may also be used to represent the
creation, reading, deletion, or updating of
data in a file or database (called a data store).
Composite data flow – a data flow that
consists of other data flows.
Control flow – a condition or nondata Control flow name
event that triggers a process.
• Used sparingly on DFDs.

9-7
@ Dr. Muhammad Iqbal Hossain
@ Dr. Muhammad Iqbal Hossain 6-8
Simple Data Flow Diagram

9-9
@ Dr. Muhammad Iqbal Hossain
Common Process Errors on DFDs

@ Dr. Muhammad Iqbal Hossain 6-10


Common Process Errors on DFDs

9-11
@ Dr. Muhammad Iqbal Hossain
Data Flow Packet Concept
• Data that should travel together should be shown as
a single data flow, no matter how many physical
documents might be included.

9-12
@ Dr. Muhammad Iqbal Hossain
Data Flows to and from Data Stores

9-13
@ Dr. Muhammad Iqbal Hossain
Rules for Data Flows
• A data flow should
never go unnamed.
• In logical
modeling, data
flow names should
describe the data
flow without
describing the
implementation
• All data flows must
begin and/or end at
a process.

9-14
@ Dr. Muhammad Iqbal Hossain
Diverging and Converging
Data Flows
Diverging data flow – a data flow that splits into
multiple data flows.
• Indicates data that starts out naturally as one flow, but
is routed to different destinations.
• Also useful to indicate multiple copies of the same
output going to different destinations.

Converging data flow – the merger of multiple


data flows into a single packet.
• Indicates data from multiple sources that can (must)
come together as a single packet for subsequent
processing.

9-15
@ Dr. Muhammad Iqbal Hossain
Diverging and Converging
Data Flows

9-16
@ Dr. Muhammad Iqbal Hossain
Exercise: Order food
• Draw a Data Flow Diagram (DFD) for “Food Ordering System”
considering the following scenarios:

Customer place an Order. The Order Food process receives the Order,
forwards it to the Kitchen, store it in the Order data store, and store
the updated Inventory details in the Inventory data store. The process
also delivers a Bill to the Customer. Manager can receive Reports
through the Generate Reports process, which takes Inventory details
and Orders as input from the Inventory and Order data store
respectively. Manager can also initiate the Order Inventory process by
providing Inventory order. The process forwards the Inventory order to
the Supplier and stores the updated Inventory details in the Inventory
data store.

9-17
@ Dr. Muhammad Iqbal Hossain
@ Dr. Muhammad Iqbal Hossain 6-18
Payroll management system

@ Dr. Muhammad Iqbal Hossain 6-19


Patient Information system

@ Dr. Muhammad Iqbal Hossain 6-20


@ Dr. Muhammad Iqbal Hossain 6-21
Process Decomposition

@ Dr. Muhammad Iqbal Hossain 6-22


Process Decomposition
Decomposition – the act of breaking a system into
sub-components. Each level of abstraction reveals
more or less detail.

9-23
@ Dr. Muhammad Iqbal Hossain
Decomposition Diagrams

Decomposition
diagram – a tool used to
depict the
decomposition of a
system. Also called
hierarchy chart.

9-24
@ Dr. Muhammad Iqbal Hossain
Level 0 Diagram
• Shows all the processes that comprise the overall system
• Shows how information moves from and to each process
• Adds data stores

9-25
@ Dr. Muhammad Iqbal Hossain
Level 1 Diagrams
• Shows all the processes that comprise
a single process on the level 0 diagram
• Shows how information moves from
and to each of these processes
• Shows in more detail the content of
higher level process
• Level 1 diagrams may not be needed
for all level 0 processes
9-26
@ Dr. Muhammad Iqbal Hossain
Level 2 Diagrams
• Shows all processes that comprise a
single process on the level 1 diagram
• Shows how information moves from
and to each of these processes
• Level 2 diagrams may not be needed
for all level 1 processes
• Correctly numbering each process
helps the user understand where the
process fits into the overall system
9-27
@ Dr. Muhammad Iqbal Hossain
Modern Structured Analysis
(More Commonly Practiced)
1. Draw context DFD to establish initial project scope.
2. Draw functional decomposition diagram to partition the
system into subsystems.
3. Create event-response or use-case list for the system to
define events for which the system must have a response.
4. Draw an event DFD (or event handler) for each event.
5. Merge event DFDs into a system diagram (or, for larger
systems, subsystem diagrams).
6. Draw detailed, primitive DFDs for the more complex event
handlers.
7. Document data flows and processes in data dictionary.

9-28
@ Dr. Muhammad Iqbal Hossain
Structured Analysis Diagram
Progression (1 of 3)

9-29
@ Dr. Muhammad Iqbal Hossain
Structured Analysis Diagram
Progression (2 of 3)

9-30
@ Dr. Muhammad Iqbal Hossain
Structured Analysis Diagram
Progression (3 of 3)

9-31
@ Dr. Muhammad Iqbal Hossain
Context Data Flow Diagram

@ Dr. Muhammad Iqbal Hossain 6-32


Context Data Flow Diagram
• Context data flow diagram - a process model used to
document the scope for a system. Also called the
environmental model.

1. Think of the system as a "black box."


2. Ask users what business transactions the system must
respond to. These are inputs, and the sources are external
agents.
3. Ask users what responses must be produced by the system.
These are outputs, and the destinations are external agents.
4. Identify any external data stores, if any.
5. Draw a context diagram.
9-33
@ Dr. Muhammad Iqbal Hossain
Balancing
Balancing - a concept that requires that data flow diagrams
at different levels of detail reflect consistency and
completeness

• Quality assurance technique


• Requires that if you explode a process to another DFD to reveal
more detail, you must include the same dta flows and data stores

9-34
@ Dr. Muhammad Iqbal Hossain
Manage Robot

@ Dr. Muhammad Iqbal Hossain 6-35


Manage Robot decomposed

@ Dr. Muhammad Iqbal Hossain 6-36


@ Dr. Muhammad Iqbal Hossain 6-37
Here passenger input current location and destination address to set up destination
and estimate fare process and the process send estimate fare to the passenger. The
same process gather map information from Google map and rate from taxi rate data
base.

@ Dr. Muhammad Iqbal Hossain 6-38


Class work

i. Draw level 1 DFD where set up destination and estimate fare process is
decomposed into two sub process as get distance and calculate fare. Data of
distance will sent from get distance to calculate fare.

ii. Draw Level 2 DFD for get distance sub process. Decompose get distance in
two sub process as get route and calculate distance. Data of route will sent
from get route to calculate distance.

@ Dr. Muhammad Iqbal Hossain 6-39


i. Draw level 1 DFD where set up destination and estimate fare process is decomposed
into two sub process as get distance and calculate fare. Data of distance will sent from
get distance to calculate fare.

@ Dr. Muhammad Iqbal Hossain 6-40


Draw Level 2 DFD for get distance sub process. Decompose get distance in two
sub process as get route and calculate distance. Data of route will sent from get
route to calculate distance.

@ Dr. Muhammad Iqbal Hossain 6-41

You might also like