Lecture 06
Lecture 06
and Design
CSE 4004
It is systematic approach, which uses graphical tools that analyze and refine
the objectives of an existing system and develop a new system specification
which can be easily understood by user.
What is Structured Analysis?
The basic goal of SA/SD is to improve quality and reduce the risk of system
failure.
DFD stands for “Data Flow Diagram” and also known as “Bubble Chart”
DFD show the flow of data between various elements of a system in graphical
form.
It also expresses the requirement of the system and shows how the current
system is implemented.
What is DFD?
It shows how data flows in a system It shows how data flow is actually implemented
in the system
It describes what data is moved from one entity It describes how data is moved from one entity
to another to another.
It focuses on what happens in the data flow It shows how the current system operates and
how a system will be implemented
Process
Processes are represented with rounded rectangles or sometimes circles.
-Process is an activity or function performed for a
specific business reason
-These can be manual or computerized
- when you depict processes in your diagrams include:
A number
A name (verb phrase)
A description (if necessary)
At least one output dataflow
At least one input data flow
DFD Elements Cont.
Data flow
These are the arrows that connect the different pieces on the data flow
diagrams.
-a data flow represents a single piece of data or a
logical collection of data
- data flow names describe the content of the data flow
but not how it is implemented
-it always starts or ends at a process
-it includes:
a name (noun)
Description (if necessary)
One or more connections to a process
DFD Elements Cont.
Data store
Represented with an open narrow rectangle or even listing the data store
between two parallel lines.
-most information systems capture data for later use
- a data store is a collection of data that is stored in
some way (it could be a database or a particular table
in a database or a physical filing cabinet)
-it includes:
a number
a name (noun)
Description (if necessary)
One or more data flows (inputs or output or both)
DFD Elements Cont.
External Entity
External entity is a person, organization, or system that is external to the
system that we are creating
-it includes:
a name (noun)
Description (if necessary)
DFD Hierarchy
A context diagram shows a single process with data flows to and from external
entities as shown in the diagram.
.
Levels of DFD
.
Levels of DFD
0-level DFD
it shows the system as a single process with its relationship to external
entities.
it represents the entire system as a single process with input and output
data indicated by incoming/outgoing arrows.
here the single process of the context diagram is broken out into more
detail with more processes and data stores.
Levels of DFD
0-level DFD
.
Levels of DFD
1-level DFD
.
Levels of DFD
2-level DFD
In level 2 DFD, we decompose the 1-level DFD into more detail and define each
necessary detail about system functioning properly.
In practice it’s common to see level 0 and level 1 diagrams, while it’s possible to
have 2, level 3 or even beyond . But they are rare except in very complex
systems.
Diagram Numbering
Since there are large set of data flow diagrams it’s important to correctly number
each process to help the user understand where the process fits into the overall
hierarchy.
context diagram is always “Process 0”
Level 0 processes are always numbered with integer value (1,2,3 etc.)
Level 1 processes always have one “dot”: (1.1, 1.2, 1.3, etc.)
Level 2 processes have two “dots” (1.1.1, 1.1.2, 1.1.3, etc.)
.
Rules in creating DFD
Process labels should be verb phrases
No process can have only outputs or only inputs.
.
database
Bidirectional flow between process and data store is represented by two separate
arrows.
.
Example: Context diagram (Basic Calculator)
First we have the process. Inside the process we have the system which is the
basic calculator.
We have a user. So user is the one who uses the calculator. For the calculator to
be function the user must send something to the process.
The user needs to give the 1st number, operator and the 2nd number.
The process will give information to the user (calculated result)
Example: Context diagram (Basic Calculator)
1st number
Operator
2nd number
Basic
user
Calculator
Calculated result
Questions
Before creating the data flow diagram, create the context diagram.
.
Data Flow Diagram: Student Enrollment System
Student
Enrollment
System
Level 1 DFD
.
Questions
.
Level 1 DFD Diagram: Hospital Management System
Level 1 DFD Diagram: Hospital Management System
patient will add patient information in the patient database. This information
will shared to manage patient process.
This process will send the patient information to admin. The admin will add edit
and delete patient entry in the patient database.
Manage patient process will also send patient information to staff and doctors.
This information will be store in staff database.
It will send to manage staff and doctor process and then this information will
send to admin.
Admin has the right to update and delete staff information
Level 1 DFD Diagram: Hospital Management System
Manage staff also assign different departments to different staff and doctor will
send patient diagnosis information to patient management process
This process will store this information in a patient database.
Patient can access patient diagnosis information from patient database.
Patient will send this information to assigned room/ facility process and as well
as to assign medicine process
Staff or doctor will send what kind of facilities patient needs and this
information will send to assigned room/ facility process
After diagnosis doctor will also send medicine information of the patient to
Level 1 DFD Diagram: Hospital Management System
After diagnosis doctor will also send medicine information of the patient to
assigned medicine process and send the facilities and medicine information to
patient
At the end patient management process will send the bill information to patient
.
Level 1 DFD Diagram: Hospital Management System
Level 2 DFD Diagram for the billing process
Thank You