1. Data Flow Diagrams – 3marks Flashcards
A data flow diagram (DFD) is…
A graphical analysis tool for structuring the requirements of an information system
What does a DFD do?
A DFD identifies processes (programs, people or machines) that transform data when data flows through.
What DOESN’T a DFD do?
Database design is not considered in DFDs
focus only on how inputs are converted into required outputs
Why use a DFD?
Sometimes difficult and not necessary to provide a complete representation of the existing or future real system.
A terminator is….
An external source/sink of information
Eg: the external entities of customer or manager.
A terminator on a DFD is shown as…
A noun in a rectangle.
A process is…
An activity that can occur in the information system
Eg: transform, generate, retrieve, delete data
On a DFD a process must have…
Both incoming and outgoing dataflows (one or more)
A process on a DFD is shown as…
An active verb inside a rectangle with rounded edges and a ruled section across the top with the ID.
A data flow is represented on a DFD with the criteria….
A noun-labelled (data name) arrow which must go to or from a process
A data store is represented on a DFD by….
A rectangle, open on the RHS, with the data name (usually noun, never a verb) and a section ruled down the LHS for the ID.
A context level DFD represents….
• ONE process only
• terminators (external entities, outside the system)
• system boundaries
• major information flows between entities and the system
NB: Every event should create a response.
A level 0 DFD represents at a high level of detail…
- major processes
- data flows
- data stores
Differences between a context level and a level 0 DFD include…
A context level DOES NOT show DATA STORES while a level 0 does
Stepwise refinement…
Partitions a DFD into the next nested level of intermediate data flow, thereby producing the next level DFD, in order as: Context level Level 0 Level 1 Etc…
The two main general rules for DFD’s are:
- The inputs of a process must be different from its outputs
- All distinct objects in the DFD must have a unique name
DFD rules for processes are:
- processes must have both outputs and inputs.
* labels should be verb phrases
DFD rules for data stores are:
- all flows to or from a data store must move through a process
- labels should be noun phrases
DFD rules for terminators (aka sources or sinks)
- no data moves directly between external entities without going through a process
- labels should be noun phrases
DFD rules for data flow are:
- Bidirectional flow between process and data store is represented by two separate arrows.
- Forked data flow must refer to exact same data item (not different data items) from a common location to multiple destinations.
- Joined data flow must refer to exact same data item (not different data items) from multiple sources to a common location.
- Data flow cannot go directly from a process to itself, must go through intervening processes.
For a DFD to be balanced means that…
• number of inputs/outputs to lower level DFD equals number of inputs/outputs to associated process of higher- level DFD