Академический Документы
Профессиональный Документы
Культура Документы
Lecture 4
Introduction to DFDs
What is a Data Flow Model
?
What is a Data Flow Diagram ?
A means of documenting the flow of
data through a system.
information
Organisation
Data flows
External
entities
Processes
Data flows
Customer
A Process
Identifier 1 Manager
Process New
Name Customer
Data Stores
D1 Student Details
DataStore Components
Customer
Name
D1 Customer
Details
External entity ➨ Data
store
A
Customer
D1 Student Details
Data store ➨ Data
store
D1 Student Details
D3 Course Details
Drawing Data Flow
Diagrams
Identify
main inputs & outputs
processes
data flows
Student
Details
D1 Student
Details
Checking Data Flow Diagrams
?
1 Manager
Register
New Customer
CORRECT
*
1 Manager
Register
New Customer
WRONG
*
Data Store and External Entity
Duplication
d M1 Order File
Customer
Example - Library DFD
1
N e w lib ra r y
J o in D 1 M em b e r
m e m b e r d e ta ils
L ib ra r y
*
M e m b e r u p d a te d w ith
N e w lib ra ry b o r r o w e d b o o k d e t a ils
m em b e r
a 2
B o o k d e ta ils
B o o k b o rro w e d B o rro w D 2 B o o k
P e rs o n u p d a te d a s b o rro w e d
B o o k
*
B o o k re tu rn e d B o o k d e ta ils u p d a t-
e d a s a v a ila b le
3
M e m b e r d e ta ils
B o o k D 1 M em b e r
u p d a te d
R e tu rn e d
*
Example - Amended DFD
1
N e w lib r a r y
J o in D 1 M e m b e r
m e m b e r d e ta ils
L ib r a r y
*
M e m b e r u p d a te d w ith
N e w lib r a r y b o rr o w e d b o o k d e ta ils
m em b e r
a 2
B o o k d e ta ils
B o o k b o rro w e d B o rro w D 2 B o o k
P e rs o n u p d a te d a s b o rro w e d
B o o k
*
B o o k re tu rn e d B o o k d e ta ils u p d a t-
e d a s a v a ila b le
3
R e m in d e r le tte r M e m b e r d e ta ils
B o o k D 1 M e m b e r
u p d a te d
R e tu rn e d
*
O v e rd u e b o o k
d e ta ils
R e m in d e r
*
1
N e w lib ra r y
J o in D 1 M em b er
m e m b e r d e ta ils
L ib r a r y
*
M e m b e r u p d a te d w ith
N e w lib ra ry b o r r o w e d b o o k d e ta ils
m em b er
a 2
B o o k d e ta ils
B o o k b o rro w e d B o rro w D 2 B oo k
P e rs o n u p d a te d a s b o rro w e d
B oo k
*
B o o k re tu rn e d B o o k d e ta ils u p d a t-
e d a s a v a ila b le
3
R e m in d e r le tte r M e m b e r d e ta ils
B oo k D 1 M em b er
u p d a te d
R e tu rn e d
*
O v e rd u e b o o k
d e ta ils
R e m in d e r
*
b 5
N ew bo ok
N e w b oo k N e w B oo k D 2 B oo k
P u b lis h e r d e ta ils
r e c e iv e d
*
Example - Water Heater
A small system is used to process temperatures
from a water heater. The temperature is read
and passed to the system. If the temperature
is outside the stored safety limits then an alarm
will sound.
Draw the external entities on the Heater
system DFD below.
6
C he ck te m p e ra tu re T e m p e ra tu re
D 1
te m p e ra tu re lim it s lim its
r e a d in g
*
Amended DFD
g 6
temperature Check temperature Temperature
Temperature D1
reading temperature limits limits
reader
reading
*
sound alarm
Alarm
Example - Supermarket
DFD
A supermarket uses point of sale bar code
scanners at their checkout tills. The bar
code on the product is scanned and is then
checked to see if it is valid. If it is a valid
bar code then the stock database is
updated and an entry for that product is
printed on the till receipt. If it is an invalid
bar code then an alarm will sound on the
checkout till and the operator will need to
deal with the problem.
Draw the processes on the Supermarket
Data Flow Diagram below.
Supermarket DFD
c
B a r
co d e P ro d u c t
D 1
sca n ne r s to c k
A la r m
R e c e ip t
Amended DFD
product details
c 4
Validate
Bar updated product Product
Bar code scanned D1
code details stock
bar
scanner
code *
invalid - sound
valid product alarm
d
details
Alarm
5
Print product
details
on receipt
* product details e
Receipt
DFD Summary
Identify the components of a Data
Flow diagram