Tools of Structured Analysis
Tools of Structured Analysis
Tools of Structured Analysis
2 • Data Dictionary
3 • Decision Tree
4 • Structured English
5 • Decision Table
Why Do We Use These Tools ?
Use graphics whenever possible to help
communicate better with the user.
Differentiate between logical and
physical system
Build a logical system model to
familiarize the user with system
characteristics and interrelationships
before implementation
DATA FLOW DIAGRAM (DFD)
Data flow diagram is a graphical tool for
structured analysis that maps out the logic flow of
data in the system.
DFD developed by Larry Constantine.
DFD also called Bubble Chart.
External entity Proces
s
Data store
Process
Proces
s
External entity
DFD Symbols
DFD contains four basic symbols :-
Constructing a DFD
Each process must contain at least one input and
an output.
Each data store must have at least one data in flow
and one data out flow.
Each data stored in a system must go through a
process.
All processes in a DFD must go to another process
or a data store.
Rules To Construct DFD
Processes should be named and numbered for easy
reference.
The data flow from top to bottom and from left to
right.
The names of data stores , sources , destinations
are written in capital letters.
Context Diagram
A context diagram is a data flow diagram that only
shows the top level, otherwise known as Level 0. At
this level, there is only one visible process node that
represents the functions of a complete system in
regards to how it interacts with external entities. Some
of the benefits of a Context Diagram are:
Shows the overview of the boundaries of a system
No technical knowledge is required to understand
with the simple notation
Simple to draw, amend and elaborate as its limited
notation
The Food Ordering System Example
It contains a process (shape) that represents the system to model, in this case, the "Food Ordering
System". It also shows the participants who will interact with the system, called the external entities.
In this example, the Supplier, Kitchen, Manager, and Customer are the entities who will interact with
the system. In between the process and the external entities, there is data flow (connectors) that
indicate the existence of information exchange between the entities and the system.
Context DFD is the entrance of a data flow model. It contains one and only one process and does not
show any data store.
Level 1 DFD
The figure below shows the level 1 DFD, which is the decomposition
(i.e. break down) of the Food Ordering System process shown in the
context DFD. Read through the diagram and then we will introduce
some of the key concepts based on this diagram.
Explanation of example
The Food Order System Data Flow Diagram example contains
three processes, four external entities, and two data stores.
Based on the diagram, we know that a Customer can place
an Order. The Order Food process receives the Order, forwards it
to the Kitchen, store it in the Order data store, and store the
updated Inventory details in the Inventory data store. The
process also delivers a Bill to the Customer.
The Manager can receive Reports through the Generate
Reports process, which takes Inventory details and Orders as
input from the Inventory and Order data store respectively.
The Manager can also initiate the Order Inventory process by
providing Inventory order. The process forwards the Inventory
order to the Supplier and stores the updated Inventory details in
the Inventory data store.
Process Modeling with Logical
Data Flow Diagram
A data flow diagram can dive into progressively more detail by using levels and layers, zeroing
in on a particular piece. DFD levels are numbered 0, 1 or 2, and occasionally go to even Level 3
or beyond.
DFD Level 0 is also called a Context Diagram. It‟s a basic overview of the whole system or
process being analyzed or modeled. It‟s designed to be an at-a-glance view, showing the system
as a single high-level process, with its relationship to external entities. It should be easily
understood by a wide audience, including stakeholders, business analysts, data analysts and
developers.
DFD Level 1 provides a more detailed breakout of pieces of the Context Level Diagram. You will
highlight the main functions carried out by the system, as you break down the high-level
process of the Context Diagram into its sub processes.
DFD Level 2 then goes one step deeper into parts of Level 1. It may require more text to reach
the necessary level of detail about the system‟s functioning.
Progression to Levels 3, 4 and beyond is possible, but going beyond Level 3 is uncommon.
Doing so can create complexity that makes it difficult to communicate, compare or model
effectively.
Using DFD layers, the cascading levels can be nested directly in the diagram, providing a
cleaner look with easy access to the deeper dive.
By becoming sufficiently detailed in the DFD, developers and designers can use it to write
pseudocode, which is a combination of English and the coding language. Pseudocode
facilitates the development of the actual code.
Advantages Of DFD
It aids in describing the boundaries of the system.
It is beneficial for communicating existing system
knowledge to the users.
DFDs can provide a detailed representation of
system components.
DFDs are easier to understand by technical &
nontechnical audiences.
Disadvantages Of DFD
Physical consideration are left out.
DATA STRUCTURE