SlideShare a Scribd company logo
1 of 24
Data Flow Diagrams
Mechanics
Outline
DFD symbols
External entities (sources and sinks)
Data Stores
Data Flows
Processes
Types of diagrams
Step by step approach
Rules
Some Rules for External Entities
External people, systems and data
stores
Reside outside the system, but interact
with system
Either a) receive info from system, b)
trigger system into motion, or c) provide
new information to system
e.g. Customers, managers
Not clerks or other staff who simply
move data
External
Entities
Some Rules for Data Stores
Internal to the system
Data at rest
Include in system if the system
processes transform the data
Store, Add, Delete, Update
Every data store on DFD should
correspond to an entity on an ERD
Data stores can come in many forms:
Hanging file folders
Computer-based files
Notebooks
Data StoresD1
Some Rules for Data Flows
Data in motion, moving from one
place to another in the system
From external entity (source) to
system
From system to external entity (sink)
From internal symbol to internal
symbol, but always either start or
end at a process
Data Flow
Some Rules for Processes
Always internal to system
Law of conservation of data:
#1: Data stays at rest unless
moved by a process.
#2: Processes cannot consume or create data
Must have at least 1 input data flow (to avoid miracles)
Must have at least 1 output data flow (to avoid black holes)
Should have sufficient inputs to create outputs (to avoid gray holes)
0.
Processes
Processes
Logical process models omit any processes that do nothing
more than move or route data, thus leaving the data unchanged.
Valid processes include those that:
Perform computations (e.g., calculate grade point average)
Make decisions (determine availability of ordered products)
Sort, filter or otherwise summarize data (identify overdue invoices)
Organize data into useful information (e.g., generate a report or
answer a question)
Trigger other processes (e.g., turn on the furnace or instruct a
robot)
Use stored data (create, read, update or delete a record)
Types of Diagrams
Context Diagram
A data flow diagram (DFD) of the scope of an organizational
system that shows the system boundaries, external entities
that interact with the system and the major information flows
between the entities and the system
Level-O Diagram
A data flow diagram (DFD) that represents a system’s major
processes, data flows and data stores at a high level of detail
Figure 8-4
Context diagram of Hoosier Burger’s Food ordering system
8.9
Figure 8-5
Level-0 DFD of Hoosier Burger’s food ordering system
8.10
Creating Data Flow Diagrams
Creating DFDs is a highly iterative process of gradual refinement.
General steps:
1. Create a preliminary Context Diagram
2. Identify Use Cases, i.e. the ways in which users most commonly
use the system
3. Create DFD fragments for each use case
4. Create a Level 0 diagram from fragments
5. Decompose to Level 1,2,…
6. Go to step 1 and revise as necessary
7. Validate DFDs with users.
Data Flow Diagramming Rules
General
Specific rules to
Symbols
Context Diagram
Level 0 and lower decompositions
Balancing across levels
DFD Rules—General
Basic rules that apply to all DFDs
Inputs to a process are always different than outputs
Objects always have a unique name
 In order to keep the diagram uncluttered, you can repeat
data stores and sources/sinks on a diagram
8.13
DFD Rules—Symbols (Table 8-2)
Process
No process can have only
outputs (a miracle)
No process can have only
inputs (black hole)
A process has a verb
phrase label
Data Store
Data cannot be moved directly
from one store to another
Data cannot move directly
from an outside source to a
data store
Data cannot move directly
from a data store to a data sink
Data store has a noun phrase
label
8.14
DFD Rules—Symbols (Table 8-2)
Source/Sink
Data cannot move
directly from a source to a
sink
A source/sink has a noun
phrase label
Data Flow
A data flow has only one
direction of flow between
symbols
A fork means that exactly the
same data goes from a
common location to two or
more processes, data stores or
sources/sinks
8.15
DFD Rules—Symbols (Table 8-2)
Data Flow (Continued)
L. A join means that exactly the same data comes from any
two or more different processes, data stores or
sources/sinks to a common location
M. A data flow cannot go directly back to the same process it
leaves
N. A data flow to a data store means update
O. A data flow from a data store means retrieve or use
P. A data flow has a noun phrase label
8.16
DFD Rules—Context Diagram
One process, numbered 0.
Sources and sinks (external entities) as squares
Main data flows depicted
No internal data stores are shown
They are inside the system
External data stores are shown as external entities
How do you tell the difference between an internal
and external data store?
Decomposition of DFDs
Functional decomposition
Act of going from one single system to many component
processes
This is a repetitive procedure allowing us to provide more and
more detail as necessary
The lowest level is called a primitive DFD
Level-N Diagrams
A DFD that is the result of n nested decompositions of a
series of subprocesses from a process on a level-0 diagram
8.18
DFD Rules—Balancing DFDs
When decomposing a DFD, you must conserve inputs
to and outputs from a process at the next level of
decomposition. This is called balancing.
Example: Hoosier Burgers
In Figure 8-4, notice that there is one input to the system, the
customer order
Three outputs:
 Customer receipt
 Food order
 Management reports
8.19
DFD Rules—Balancing DFDs
Example (Continued)
Notice Figure 8-5. We have the same inputs and
outputs
No new inputs or outputs have been introduced
We can say that the context diagram and level-0
DFD are balanced
8.20
DFD Rules—Balancing DFDs
An unbalanced example, Figure 8-10
In context diagram, we have one input to the system,
A and one output, B
Level-0 diagram has one additional data flow, C
These DFDs are not balanced
8.21
Figure 8-10
An unbalanced set of data flow diagrams—why?
(a) Context diagram (b) Level-0 diagram
8.22
Balancing DFDs
We can split a data flow into separate data flows
on a lower level diagram (see Figure 8-11)
Balancing leads to four additional advanced
rules (See Table 8-3)
8.23
Data Flow Splits and Joins
Is this
allowed?

More Related Content

What's hot

What's hot (18)

DFD
DFDDFD
DFD
 
208 dataflowdgm
208 dataflowdgm208 dataflowdgm
208 dataflowdgm
 
Data Flow Diagrams
Data Flow DiagramsData Flow Diagrams
Data Flow Diagrams
 
Ch05
Ch05Ch05
Ch05
 
DFD Slides
DFD SlidesDFD Slides
DFD Slides
 
Dfd over flowcharts
Dfd over flowcharts Dfd over flowcharts
Dfd over flowcharts
 
Data flow diagrams
Data flow diagramsData flow diagrams
Data flow diagrams
 
Data Flow Diagram
Data Flow DiagramData Flow Diagram
Data Flow Diagram
 
Data flow diagram
Data flow diagramData flow diagram
Data flow diagram
 
Using data flow diagram
Using data flow diagramUsing data flow diagram
Using data flow diagram
 
Dfd examples
Dfd examplesDfd examples
Dfd examples
 
Chapter7
Chapter7Chapter7
Chapter7
 
Data Flow Diagrams
Data Flow DiagramsData Flow Diagrams
Data Flow Diagrams
 
Understanding Data Flow Diagram
Understanding Data Flow DiagramUnderstanding Data Flow Diagram
Understanding Data Flow Diagram
 
Introduction to Data Flow Diagram (DFD)
Introduction to Data Flow Diagram (DFD)Introduction to Data Flow Diagram (DFD)
Introduction to Data Flow Diagram (DFD)
 
Df dtutorial
Df dtutorialDf dtutorial
Df dtutorial
 
DFD and Class diagram
DFD and Class diagramDFD and Class diagram
DFD and Class diagram
 
The DFD
The DFDThe DFD
The DFD
 

Similar to Dfd mechanics

Chapter08 structuring system requirements
Chapter08 structuring system requirementsChapter08 structuring system requirements
Chapter08 structuring system requirementsDhani Ahmad
 
Dfd data flow diagram
Dfd   data flow diagramDfd   data flow diagram
Dfd data flow diagramPuneet Arora
 
Data Flow Diagram
Data Flow DiagramData Flow Diagram
Data Flow Diagramnethisip13
 
dtata flow digram
dtata flow digramdtata flow digram
dtata flow digramamrelshaikh
 
Refer to the following figure which contains drafts of a context and l.docx
Refer to the following figure which contains drafts of a context and l.docxRefer to the following figure which contains drafts of a context and l.docx
Refer to the following figure which contains drafts of a context and l.docxlmarie40
 
Data flow diagram
Data flow diagram Data flow diagram
Data flow diagram Nidhi Sharma
 
DFD_Context-_zero-level.ppt
DFD_Context-_zero-level.pptDFD_Context-_zero-level.ppt
DFD_Context-_zero-level.pptFarHana74914
 
DATA FLOW DIAGRAMS Yamini devi.ppt
DATA FLOW DIAGRAMS Yamini devi.pptDATA FLOW DIAGRAMS Yamini devi.ppt
DATA FLOW DIAGRAMS Yamini devi.pptsures4
 
DATA FLOW DIAGRAMS Yamini devi.ppt
DATA FLOW DIAGRAMS Yamini devi.pptDATA FLOW DIAGRAMS Yamini devi.ppt
DATA FLOW DIAGRAMS Yamini devi.pptsures4
 
Design Flow Diagram for Information System
Design Flow Diagram for Information SystemDesign Flow Diagram for Information System
Design Flow Diagram for Information Systemarifasyrafcp13
 
Data flow oriented modeling
Data flow oriented modelingData flow oriented modeling
Data flow oriented modelingKavithaGowri
 
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptxSE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptxAmr E. Mohamed
 
Chapter 7software engneeringand system development life cycle.ppt
Chapter 7software engneeringand system development life cycle.pptChapter 7software engneeringand system development life cycle.ppt
Chapter 7software engneeringand system development life cycle.pptDoaaRezk5
 

Similar to Dfd mechanics (20)

Chapter08 structuring system requirements
Chapter08 structuring system requirementsChapter08 structuring system requirements
Chapter08 structuring system requirements
 
Dfd data flow diagram
Dfd   data flow diagramDfd   data flow diagram
Dfd data flow diagram
 
Data Flow Diagram
Data Flow DiagramData Flow Diagram
Data Flow Diagram
 
dtata flow digram
dtata flow digramdtata flow digram
dtata flow digram
 
DFD
DFDDFD
DFD
 
Refer to the following figure which contains drafts of a context and l.docx
Refer to the following figure which contains drafts of a context and l.docxRefer to the following figure which contains drafts of a context and l.docx
Refer to the following figure which contains drafts of a context and l.docx
 
Data flow diagram
Data flow diagram Data flow diagram
Data flow diagram
 
DFD_Context-_zero-level.ppt
DFD_Context-_zero-level.pptDFD_Context-_zero-level.ppt
DFD_Context-_zero-level.ppt
 
DATA FLOW DIAGRAMS Yamini devi.ppt
DATA FLOW DIAGRAMS Yamini devi.pptDATA FLOW DIAGRAMS Yamini devi.ppt
DATA FLOW DIAGRAMS Yamini devi.ppt
 
DATA FLOW DIAGRAMS Yamini devi.ppt
DATA FLOW DIAGRAMS Yamini devi.pptDATA FLOW DIAGRAMS Yamini devi.ppt
DATA FLOW DIAGRAMS Yamini devi.ppt
 
Process modeling
Process modelingProcess modeling
Process modeling
 
DFD.ppt
DFD.pptDFD.ppt
DFD.ppt
 
Dfd2
Dfd2Dfd2
Dfd2
 
Design Flow Diagram for Information System
Design Flow Diagram for Information SystemDesign Flow Diagram for Information System
Design Flow Diagram for Information System
 
Data flow oriented modeling
Data flow oriented modelingData flow oriented modeling
Data flow oriented modeling
 
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptxSE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
SE2018_Lec 14_ Process Modeling and Data Flow Diagram.pptx
 
Dfd final
Dfd finalDfd final
Dfd final
 
Using data flow diagrams
Using data flow diagramsUsing data flow diagrams
Using data flow diagrams
 
Chapter 7software engneeringand system development life cycle.ppt
Chapter 7software engneeringand system development life cycle.pptChapter 7software engneeringand system development life cycle.ppt
Chapter 7software engneeringand system development life cycle.ppt
 
Data Flow Diagram or DFD
Data Flow Diagram  or DFDData Flow Diagram  or DFD
Data Flow Diagram or DFD
 

Recently uploaded

Not Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These SymptomsNot Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These SymptomsFifth Gear Automotive
 
UNIT-III-TRANSMISSION SYSTEMS REAR AXLES
UNIT-III-TRANSMISSION SYSTEMS REAR AXLESUNIT-III-TRANSMISSION SYSTEMS REAR AXLES
UNIT-III-TRANSMISSION SYSTEMS REAR AXLESDineshKumar4165
 
Delhi Call Girls Saket 9711199171 ☎✔👌✔ Full night Service for more than 1 person
Delhi Call Girls Saket 9711199171 ☎✔👌✔ Full night Service for more than 1 personDelhi Call Girls Saket 9711199171 ☎✔👌✔ Full night Service for more than 1 person
Delhi Call Girls Saket 9711199171 ☎✔👌✔ Full night Service for more than 1 personshivangimorya083
 
UNIT-1-VEHICLE STRUCTURE AND ENGINES.ppt
UNIT-1-VEHICLE STRUCTURE AND ENGINES.pptUNIT-1-VEHICLE STRUCTURE AND ENGINES.ppt
UNIT-1-VEHICLE STRUCTURE AND ENGINES.pptDineshKumar4165
 
Vip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp Number
Vip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp NumberVip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp Number
Vip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp Numberkumarajju5765
 
Innovating Manufacturing with CNC Technology
Innovating Manufacturing with CNC TechnologyInnovating Manufacturing with CNC Technology
Innovating Manufacturing with CNC Technologyquickpartslimitlessm
 
Hyundai World Rally Team in action at 2024 WRC
Hyundai World Rally Team in action at 2024 WRCHyundai World Rally Team in action at 2024 WRC
Hyundai World Rally Team in action at 2024 WRCHyundai Motor Group
 
如何办理(UQ毕业证书)昆士兰大学毕业证毕业证成绩单原版一比一
如何办理(UQ毕业证书)昆士兰大学毕业证毕业证成绩单原版一比一如何办理(UQ毕业证书)昆士兰大学毕业证毕业证成绩单原版一比一
如何办理(UQ毕业证书)昆士兰大学毕业证毕业证成绩单原版一比一hnfusn
 
Russian Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...
Russian  Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...Russian  Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...
Russian Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...shivangimorya083
 
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girls
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile GirlsVip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girls
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girlsshivangimorya083
 
2024 TOP 10 most fuel-efficient vehicles according to the US agency
2024 TOP 10 most fuel-efficient vehicles according to the US agency2024 TOP 10 most fuel-efficient vehicles according to the US agency
2024 TOP 10 most fuel-efficient vehicles according to the US agencyHyundai Motor Group
 
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
UNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGER
UNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGERUNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGER
UNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGERDineshKumar4165
 
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHERUNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHERunosafeads
 
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptx
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptxUNIT-V-ELECTRIC AND HYBRID VEHICLES.pptx
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptxDineshKumar4165
 
(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCR(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCRsoniya singh
 
John Deere Tractors 5515 Diagnostic Repair Manual
John Deere Tractors 5515 Diagnostic Repair ManualJohn Deere Tractors 5515 Diagnostic Repair Manual
John Deere Tractors 5515 Diagnostic Repair ManualExcavator
 
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...Hot Call Girls In Sector 58 (Noida)
 

Recently uploaded (20)

Not Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These SymptomsNot Sure About VW EGR Valve Health Look For These Symptoms
Not Sure About VW EGR Valve Health Look For These Symptoms
 
UNIT-III-TRANSMISSION SYSTEMS REAR AXLES
UNIT-III-TRANSMISSION SYSTEMS REAR AXLESUNIT-III-TRANSMISSION SYSTEMS REAR AXLES
UNIT-III-TRANSMISSION SYSTEMS REAR AXLES
 
Delhi Call Girls Saket 9711199171 ☎✔👌✔ Full night Service for more than 1 person
Delhi Call Girls Saket 9711199171 ☎✔👌✔ Full night Service for more than 1 personDelhi Call Girls Saket 9711199171 ☎✔👌✔ Full night Service for more than 1 person
Delhi Call Girls Saket 9711199171 ☎✔👌✔ Full night Service for more than 1 person
 
UNIT-1-VEHICLE STRUCTURE AND ENGINES.ppt
UNIT-1-VEHICLE STRUCTURE AND ENGINES.pptUNIT-1-VEHICLE STRUCTURE AND ENGINES.ppt
UNIT-1-VEHICLE STRUCTURE AND ENGINES.ppt
 
Vip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp Number
Vip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp NumberVip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp Number
Vip Hot Call Girls 🫤 Mahipalpur ➡️ 9711199171 ➡️ Delhi 🫦 Whatsapp Number
 
Innovating Manufacturing with CNC Technology
Innovating Manufacturing with CNC TechnologyInnovating Manufacturing with CNC Technology
Innovating Manufacturing with CNC Technology
 
Hyundai World Rally Team in action at 2024 WRC
Hyundai World Rally Team in action at 2024 WRCHyundai World Rally Team in action at 2024 WRC
Hyundai World Rally Team in action at 2024 WRC
 
如何办理(UQ毕业证书)昆士兰大学毕业证毕业证成绩单原版一比一
如何办理(UQ毕业证书)昆士兰大学毕业证毕业证成绩单原版一比一如何办理(UQ毕业证书)昆士兰大学毕业证毕业证成绩单原版一比一
如何办理(UQ毕业证书)昆士兰大学毕业证毕业证成绩单原版一比一
 
Russian Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...
Russian  Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...Russian  Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...
Russian Call Girls Delhi Indirapuram {9711199171} Aarvi Gupta ✌️Independent ...
 
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girls
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile GirlsVip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girls
Vip Hot🥵 Call Girls Delhi Delhi {9711199012} Avni Thakur 🧡😘 High Profile Girls
 
2024 TOP 10 most fuel-efficient vehicles according to the US agency
2024 TOP 10 most fuel-efficient vehicles according to the US agency2024 TOP 10 most fuel-efficient vehicles according to the US agency
2024 TOP 10 most fuel-efficient vehicles according to the US agency
 
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Jama Masjid (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
UNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGER
UNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGERUNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGER
UNIT-II-ENGINE AUXILIARY SYSTEMS &TURBOCHARGER
 
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHERUNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
UNOSAFE ELEVATOR PRIVATE LTD BANGALORE BROUCHER
 
sauth delhi call girls in Connaught Place🔝 9953056974 🔝 escort Service
sauth delhi call girls in  Connaught Place🔝 9953056974 🔝 escort Servicesauth delhi call girls in  Connaught Place🔝 9953056974 🔝 escort Service
sauth delhi call girls in Connaught Place🔝 9953056974 🔝 escort Service
 
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptx
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptxUNIT-V-ELECTRIC AND HYBRID VEHICLES.pptx
UNIT-V-ELECTRIC AND HYBRID VEHICLES.pptx
 
(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCR(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Shaheen Bagh 🔝 Delhi NCR
 
John Deere Tractors 5515 Diagnostic Repair Manual
John Deere Tractors 5515 Diagnostic Repair ManualJohn Deere Tractors 5515 Diagnostic Repair Manual
John Deere Tractors 5515 Diagnostic Repair Manual
 
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...
꧁ ୨⎯Call Girls In Ashok Vihar, New Delhi **✿❀7042364481❀✿**Escorts ServiCes C...
 
Hotel Escorts Sushant Golf City - 9548273370 Call Girls Service in Lucknow, c...
Hotel Escorts Sushant Golf City - 9548273370 Call Girls Service in Lucknow, c...Hotel Escorts Sushant Golf City - 9548273370 Call Girls Service in Lucknow, c...
Hotel Escorts Sushant Golf City - 9548273370 Call Girls Service in Lucknow, c...
 

Dfd mechanics

  • 2. Outline DFD symbols External entities (sources and sinks) Data Stores Data Flows Processes Types of diagrams Step by step approach Rules
  • 3. Some Rules for External Entities External people, systems and data stores Reside outside the system, but interact with system Either a) receive info from system, b) trigger system into motion, or c) provide new information to system e.g. Customers, managers Not clerks or other staff who simply move data External Entities
  • 4. Some Rules for Data Stores Internal to the system Data at rest Include in system if the system processes transform the data Store, Add, Delete, Update Every data store on DFD should correspond to an entity on an ERD Data stores can come in many forms: Hanging file folders Computer-based files Notebooks Data StoresD1
  • 5. Some Rules for Data Flows Data in motion, moving from one place to another in the system From external entity (source) to system From system to external entity (sink) From internal symbol to internal symbol, but always either start or end at a process Data Flow
  • 6. Some Rules for Processes Always internal to system Law of conservation of data: #1: Data stays at rest unless moved by a process. #2: Processes cannot consume or create data Must have at least 1 input data flow (to avoid miracles) Must have at least 1 output data flow (to avoid black holes) Should have sufficient inputs to create outputs (to avoid gray holes) 0. Processes
  • 7. Processes Logical process models omit any processes that do nothing more than move or route data, thus leaving the data unchanged. Valid processes include those that: Perform computations (e.g., calculate grade point average) Make decisions (determine availability of ordered products) Sort, filter or otherwise summarize data (identify overdue invoices) Organize data into useful information (e.g., generate a report or answer a question) Trigger other processes (e.g., turn on the furnace or instruct a robot) Use stored data (create, read, update or delete a record)
  • 8. Types of Diagrams Context Diagram A data flow diagram (DFD) of the scope of an organizational system that shows the system boundaries, external entities that interact with the system and the major information flows between the entities and the system Level-O Diagram A data flow diagram (DFD) that represents a system’s major processes, data flows and data stores at a high level of detail
  • 9. Figure 8-4 Context diagram of Hoosier Burger’s Food ordering system 8.9
  • 10. Figure 8-5 Level-0 DFD of Hoosier Burger’s food ordering system 8.10
  • 11. Creating Data Flow Diagrams Creating DFDs is a highly iterative process of gradual refinement. General steps: 1. Create a preliminary Context Diagram 2. Identify Use Cases, i.e. the ways in which users most commonly use the system 3. Create DFD fragments for each use case 4. Create a Level 0 diagram from fragments 5. Decompose to Level 1,2,… 6. Go to step 1 and revise as necessary 7. Validate DFDs with users.
  • 12. Data Flow Diagramming Rules General Specific rules to Symbols Context Diagram Level 0 and lower decompositions Balancing across levels
  • 13. DFD Rules—General Basic rules that apply to all DFDs Inputs to a process are always different than outputs Objects always have a unique name  In order to keep the diagram uncluttered, you can repeat data stores and sources/sinks on a diagram 8.13
  • 14. DFD Rules—Symbols (Table 8-2) Process No process can have only outputs (a miracle) No process can have only inputs (black hole) A process has a verb phrase label Data Store Data cannot be moved directly from one store to another Data cannot move directly from an outside source to a data store Data cannot move directly from a data store to a data sink Data store has a noun phrase label 8.14
  • 15. DFD Rules—Symbols (Table 8-2) Source/Sink Data cannot move directly from a source to a sink A source/sink has a noun phrase label Data Flow A data flow has only one direction of flow between symbols A fork means that exactly the same data goes from a common location to two or more processes, data stores or sources/sinks 8.15
  • 16. DFD Rules—Symbols (Table 8-2) Data Flow (Continued) L. A join means that exactly the same data comes from any two or more different processes, data stores or sources/sinks to a common location M. A data flow cannot go directly back to the same process it leaves N. A data flow to a data store means update O. A data flow from a data store means retrieve or use P. A data flow has a noun phrase label 8.16
  • 17. DFD Rules—Context Diagram One process, numbered 0. Sources and sinks (external entities) as squares Main data flows depicted No internal data stores are shown They are inside the system External data stores are shown as external entities How do you tell the difference between an internal and external data store?
  • 18. Decomposition of DFDs Functional decomposition Act of going from one single system to many component processes This is a repetitive procedure allowing us to provide more and more detail as necessary The lowest level is called a primitive DFD Level-N Diagrams A DFD that is the result of n nested decompositions of a series of subprocesses from a process on a level-0 diagram 8.18
  • 19. DFD Rules—Balancing DFDs When decomposing a DFD, you must conserve inputs to and outputs from a process at the next level of decomposition. This is called balancing. Example: Hoosier Burgers In Figure 8-4, notice that there is one input to the system, the customer order Three outputs:  Customer receipt  Food order  Management reports 8.19
  • 20. DFD Rules—Balancing DFDs Example (Continued) Notice Figure 8-5. We have the same inputs and outputs No new inputs or outputs have been introduced We can say that the context diagram and level-0 DFD are balanced 8.20
  • 21. DFD Rules—Balancing DFDs An unbalanced example, Figure 8-10 In context diagram, we have one input to the system, A and one output, B Level-0 diagram has one additional data flow, C These DFDs are not balanced 8.21
  • 22. Figure 8-10 An unbalanced set of data flow diagrams—why? (a) Context diagram (b) Level-0 diagram 8.22
  • 23. Balancing DFDs We can split a data flow into separate data flows on a lower level diagram (see Figure 8-11) Balancing leads to four additional advanced rules (See Table 8-3) 8.23
  • 24. Data Flow Splits and Joins Is this allowed?

Editor's Notes

  1. Always internal: we do not model what external entities or systems do with the data (they are a “black box” as far as we are concerned). #1: Processes may PULL or PUSH data. #2: Processes cannot consume or create data BY THEMSELVES. The system may provide processes information to add or delete data (within data stores), but processes cannot simply eat or invent data. Note the system would have to be TRIGGERED somehow to add or delete data.