�Modeling Tools for Systems Analyst �
� �
�
Context Diagram
Data Flow Diagram(level 0,Level1 and Level2)
�
Process Modeling
Context Diagram
Definitions and Symbols
FIGURE 7-2
Comparison of DeMarco and Yourdon
and Gane and Sarson DFD symbol sets
Definitions and Symbols (Cont.)
Definitions and Symbols (Cont.)
Developing DFDs (Cont.)
Context Diagram
FIGURE 7-4
Context diagram of Hoosier Burger’s food-ordering system
Level-0 Diagram
FIGURE 7-5
Level-0 DFD of Hoosier Burger’s food-ordering system
Data Flow Diagramming Rules
Decomposition of DFDs
Decomposition of DFDs (Cont.)
Level-1 DFD
Level-1 DFD shows the sub-processes of one of the processes in the Level-0 DFD.
This is a Level-1 DFD for Process 4.0.
Processes are labeled 4.1, 4.2, etc. These can be further decomposed in more primitive (lower-level) DFDs if necessary.
FIGURE 7-8
Level-1 diagram showing the decomposition of Process 4.0 from the level-0 diagram for Hoosier Burger’s food-ordering system
Level-n DFD
Level-n DFD shows the sub-processes of one of the processes in the Level n-1 DFD.
This is a Level-2 DFD for Process 4.3.
Processes are labeled 4.3.1, 4.3.2, etc. If this is the lowest level of the hierarchy, it is called a primitive DFD.
FIGURE 7-9
Level-2 diagram showing the decomposition of Process 4.3 from the level-1 diagram for Process 4.0 for Hoosier Burger’s food-ordering system
Balancing DFDs
Balancing DFDs (Cont.)
Balancing DFDs (Cont.)
This is unbalanced because the process of the context diagram has only one input but the Level-0 diagram has two inputs.
1 input
1 output
2 inputs
1 output
FIGURE 7-10 An unbalanced set of data flow diagrams
(a) Context diagram
(b) Level-0 diagram
Balancing DFDs (Cont.)
Guidelines for Drawing DFDs
Guidelines for Drawing DFDs (Cont.)
Guidelines for Drawing DFDs (Cont.)
Guidelines for Drawing DFDs (Cont.)
Guidelines for Drawing DFDs (Cont.)
Guidelines for Drawing DFDs (Cont.)