Data Flow Diagram
Data Flow Diagram
Introduction
The three most important modeling techniques used in analysing and building
information systems are: Data Flow Diagramming (DFDs), Logical Data Structure
modelling (LDSs), and Entity Life Histories (ELHs)
Data Flow Diagrams (DFDs) model events andprocesses(i.e. activities which transform
data) within a system. DFDs examine how data flows into, out of, and within the system.
Logical Data Structures (LDSs) represent a system's information and data in another
way. LDSs map the underlying data structures as entity types, entity attributes, and the
relationships between the entities
Entity Life Histories (ELHs) describe the changes which happen to 'things' (data) within
the system.
These three techniques are common to many methodologies and are widely used in
system analysis. Notation and graphics style may vary across methodologies, but the
underlying principles are generally the same.
In SSADM (Structured Systems Analysis and Design Methodology) - which has for a
number of years been widely used in the UK - systems analysts and modelers use the
above techniques to build up three, inter-related, views of the target system, which are
cross-checked for consistency.
• DFD Principles
• Basic DFD Notations
• (SSADM) DFD Notations
• DFD Levels
Another way of looking at it is that, in SSADM, DFDs are used to answer the following
data-oriented questions about a target system:
DFD Principles
Context diagram 2
Both the above diagrams say the same thing. The second makes use of the possibility in
SSADM of including duplicate objects. (In context diagram 2 the duplication of the
Customer object is shown by the line at the left hand side. Drawing the diagram in this
way emphasizes the Input-Output properties of a system. See also 'Notes' below)
The Context diagram above, and the decomposition which follows, are a first attempt at
describing part of a 'Home Catalogue' sales system. In the modeling process it is likely
that diagrams will be reworked and amended many times - until all parties are satisfied
with the resulting model. A model can usefully be described as a co-ordinated set of
diagrams.
DFD Notations
DFD Levels
The Context and Top Level diagrams in the example start to describe 'Home Catalogue'
type sales system. The two diagrams are just the first steps in creating a model of the
system. (By model we mean a co-ordinated set of diagrams which describe the target
system and provide answers to questions we need to ask about that system).As suggested
the diagrams presented in the example will be reworked and amended many times - until
all parties are satisfied. But the two diagrams by themselves are not enough; they only
provide a high level description. On the other hand, the initial diagrams do start to break
down, decompose, what might be quite a complex system into manageable parts.
Each Process box in the Top Level diagram will itself be made up of a number of
processes, and will need to be decomposed as a second level diagram.
Each box in a diagram has an identification number derived from the parent - in the
top left corner. (The Context level is seen as box 0)
Any box in the second level decomposition may be decomposed to a third and then a
fourth level. Very complex systems may possibly require decomposition of some boxes
to further levels.
Decomposition stops when a process box can be described with an Elementary Process
Description using ordinary English, later on the process will be described more
formally as a Function Description using, for example, pseudocode.
See also: Procedure Definitions - low level DFDs
Notes
• Redrawing the diagram makes it clear that Process 3, 'Maintain Credit Rating'
requires some input - if it is to produce output.
• Note that 'Goods', while it is in reality a physical thing, is seen here as data. This
is because this is a model. We will represent 'Goods' in our model by some
description. In the model, 'Goods' becomes a set of data items. In the real-world,
there will be some physical objects, but in our model we only have an astract
description.
SSADM uses different sets of Data Flow Diagram to describe the target system in
different ways, moving from analysis of the current system to specification of the
required system:
.
WHAT the system does - Current Physical DFD
HOW it does it - Current Logical DFD
WHAT it should do - Required Logical DFD
HOW it should do it - Required Physical DFD
References