Professional Documents
Culture Documents
Known as DFDs
A way to model a real world situation
They are the interface between the real world activities and an
understanding of how this can be converted into a computer system.
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 2
Why do we use DFDs?
It is a way of taking the physical view and converting it into a logical view.
The physical view - all documents involved
The logical view - the data they contain
Their main purpose is to communicate with the user, the analyst’s
understanding of the scope of the required system
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 3
Decomposition and Abstraction
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 4
The Elements
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 5
DFD Naming Guidelines
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 6
Levelling
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 7
The Levels
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 8
Data Flow Diagrams Symbols
Data Flow Lines Logical Data Flow Diagrams – show the data
flow, structure, and requirements of a new
system
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 9
Data Flow Diagrams Symbols
DATA STORE
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 10
Data Flow Diagrams Symbols
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 11
Data Flow Diagrams Symbols
DATA STORE
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 12
Data Flow Diagrams Symbols
DATA STORE
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 13
Creating Data Flow Diagrams
Steps:
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 14
Data Flow Diagrams Levels
Context Level DFD
Level 0 DFD
0.0
1.0
Process Process
Data Flow Data Flow
Data Flow
Data Flow
Data Flow Lines
3.0
Process Data Flow
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 15
Data Flow Diagrams Levels
Source
Level 1 DFD (and on)
Data Flow
Source/
Sink
1.1
DATA STORE
Process
0.0
Process Source
1.2
Data Flow Process
DATA STORE
Data Flow
Data Flow Lines
Sink
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 16
Examples
Creating Data Flow Diagrams Lemonade Stand Example
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 17
Creating Data Flow Diagrams
Example Steps:
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 18
Creating Data Flow Diagrams
Example
1. Create a list of activities
Think through the
activities that take place
at a juice stand.
Customer Order
Serve Product
Collect Payment
Produce Product
Store Product
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 19
Creating Data Flow Diagrams
Example
1. Create a list of activities
Also think of the
additional activities
needed to support the
basic activities. Customer Order
Serve Product
Collect Payment
Produce Product
Store Product
Order Raw Materials
Pay for Raw Materials
Pay for Labor
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 20
Creating Data Flow Diagrams
Example
1. Create a list of activities
Group these activities in
some logical fashion,
possibly functional areas. Customer Order
Serve Product
Collect Payment
Produce Product
Store Product
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 21
Creating Data Flow Diagrams
Example
Create a context level 2. Construct Context Level DFD
diagram identifying the (identifies sources and sink)
sources and sinks
(users). Context Level DFD
Customer Order
Sales Forecast
Serve Product Order 0.0
Collect Payment CUSTOMER Lemonade Production Schedule EMPLOYEE
Product Served System Pay
Payment Time Worked
Produce Product Received Goods
Store Product Payment
Purchase Order
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 23
Example
4. Construct Level 1- n DFD
Create a level 1 (identifies actual data flows and data stores )
decomposing the Level 1 DFD
processes in level 0 and
CUSTOMER
identifying data stores.
Customer Order
Request for Forecast
Customer Order ORDER
1.1
Serve Product Record
Collect Payment Order
1.3
Produce
Severed Order Sales
Produce Product Payment Forecast
Sales Forecast
Store Product
1.2
Receive PAYMENT
Payment
Order Raw Materials
Pay for Raw Materials
INVENTORTY
Order Raw Materials Production Data
Pay for Raw Materials
2.3 Quantity Produced &
Store Location Stored
Pay for Labor Product
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 25
Example
4. Construct Level 1 (continued)
Create a level 1
decomposing the Level 1 DFD
processes in level 0 and Order Decision
PURCHASE
identifying data stores. 3.1 ORDER
Produce
Purchase
Customer Order Order Quantity On-Hand
Serve Product Quantity
RAW
MATERIALS
Collect Payment Received Received
Goods
3.2
Produce Product Receive
Items
Store Product RECEIVED
ITEMS
Payment Approval
Order Raw Materials
VENDOR
Pay for Raw Materials 3.3
Pay
Vendor
Pay for Labor
Payment
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 26
Example
4. Construct Level 1 (continued)
Create a level 1
decomposing the Level 1 DFD
processes in level 0 and Time Worked
Payment Approval
Order Raw Materials
4.3
Pay for Raw Materials Pay
Employe
e PAYMENTS
Pay for Labor
Payment
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 27
Process Decomposition
1.1 1.2
1.0
Record Receive
Sale
Order Payment
0.0
Lemonade
System
3.1
3.0 3.2 3.3
Produce
Procure- Receive Pay
Purchase
ment Items Vendor
Order
4.1 4.3
4.2
4.0 Record Pay
Calculate
Payroll Time Employe
Payroll
Worked e
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 29
DFD Example: Bus Garage Repairs
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 30
DFD Example: Bus Garage Repairs (cont’d)
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 31
DFD Example: Bus Garage Repairs
(cont’d)
Data stores:
Personnel file
Repairs file
Bus master list
Parts list
Data flows:
Repair order
Bus record
Parts record
Employee timecard
Invoices
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 32
Hairdressing Salon Level 1
Physical DFD
1 Receptionist
New client
Register details
Appointment
Existing client
Appointment details
details M1 Client card index
Confirmation
Request Appointment
details
Confirmation
Details
M2 Appointment diary
Confirmation of
a
arrival
Client Appointment
details 2 Receptionist
Change of
hairstyle etc.
3 Hairdresser/Rcptnst
(Lejk & Deeks)
Conduct
appointment
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 33
Thank You !!!
Stratford University | School of Computer Science & Information Technology | Dr. Engr. Sami ur Rahman 34