SlideShare uma empresa Scribd logo
1 de 20
DFD & CRC
Topic
Presenter
Rao Faizan 26
We will discuss..
• DFD
• Components of DFD
• Levels of DFD
• Class
• How to identify class and responsibility.
• Subclass
• Superclass
• Object
• Responsibility
• Collaboration
Data Flow Diagram
• Data flow diagram is graphical representation of flow of data in an information
system. It is capable of depicting incoming data flow, outgoing data flow and
stored data. The DFD does not mention anything about how data flows through
the system.
• There is a prominent difference between DFD and Flowchart. The flowchart
depicts flow of control in program modules. DFDs depict flow of data in the
system at various levels. DFD does not contain any control.
• Types of DFD
• Data Flow Diagrams are either Logical or Physical.
• Logical DFD - This type of DFD concentrates on the system process, and flow of
data in the system. For example in a Banking software system, how data is moved
between different entities.
• Physical DFD - This type of DFD shows how the data flow is actually implemented
in the system. It is more specific and close to the implementation.
DFD Components
• DFD can represent Source, destination, storage and flow of data using
the following set of components.
DFD Components
• Entities - Entities are source and destination of information data.
Entities are represented by a rectangles with their respective names.
• Process - Activities and action taken on the data are represented by
Circle or Round-edged rectangles.
• Data Storage - There are two variants of data storage - it can either be
represented as a rectangle with absence of both smaller sides or as
an open-sided rectangle with only one side missing.
• Data Flow - Movement of data is shown by pointed arrows. Data
movement is shown from the base of arrow as its source towards
head of the arrow as destination.
Level of DFD
• Level 0 - Highest abstraction level DFD is known as Level 0 DFD, which
depicts the entire information system as one diagram concealing all
the underlying details. Level 0 DFDs are also known as context level
DFDs.
Level 1
• The Level 0 DFD is broken down into more specific, Level 1 DFD. Level
1 DFD depicts basic modules in the system and flow of data among
various modules. Level 1 DFD also mentions basic processes and
sources of information.
Level 2
• At this level, DFD shows how data flows inside the modules
mentioned in Level 1.
• Higher level DFDs can be transformed into more specific lower level
DFDs with deeper level of understanding unless the desired level of
specification is achieved.
Class, Responsibility, and Collaborator(CRC)
• A class represents a collection of similar objects.
• A responsibility is anything that a class knows or does.
• Responsibilities are the attributes and operations that are relevant for
the class.
• A collaborator is another class that is used to get information for, or
performs actions for the class at hand.
• Collaborators are those classes that are required to provide a class
with the information needed to complete a responsibility.
CRC Modelling
• A CRC model is really a collection of standard index cards that
represent classes. The cards are divided into three sections. Along the
top of the card you write the name of the class. In the body of the
card you list the class responsibilities on the left and the collaborators
on the right.
Class Diagram
Classes
• Entity classes, also called model or business classes, are extracted
directly from the statement of the problem.
• Boundary classes are used to create the interface (e.g., interactive
screen or printed reports).
• Controller classes manage a “unit of work” from start to finish.
Identify class
• Use nouns in requirements
• Noun phrases leads to objects
Conti…
Identify responsibility
• Twice a year the company publishes a catalog of products,
which is mailed to customers and other interested people.
• Customers purchase products by submitting a list of products
with payment to the company. The company fills the order and
ships the products to the customer’s address.
• The order processing software will track the order from the
time it is received until the product is shipped.
• The company will provide quick service. They should be able to
ship a customer’s order by the fastest, most efficient means
possible.
Verb phrases lead to responsibilities..
For Example..
Imagine that you are developing order-processing software for a mail-
order company, a reseller of products purchased from various suppliers.
Responsibilities
Publishes a catalog
Is mailed to customers
Purchases products;
submitting
Fills the order
Ships the products; is
shipped
Track the order
Is received
Provides quick service
collaborationsResponsibility
Summary
• DFD
• Components of DFD
• LEVELs of DFD
• Class: The blueprint for an object.
• Subclass: A class that inherits from one or more classes.
• Superclass: The class from which another class inherits.
• Object: Something that can do things. An object has state, behavior, and identity.
The structure and behavior of similar objects are defined in their common class.
• Responsibility: Some behavior for which an object is held accountable. A
responsibility denotes the obligation of an object to provide a certain behavior.
• Collaboration: The process whereby several objects cooperate to provide some
higher-level behavior.
Thank you

Mais conteúdo relacionado

Mais procurados

Mais procurados (19)

The DFD
The DFDThe DFD
The DFD
 
DFD ppt
DFD pptDFD ppt
DFD ppt
 
Data flow diagram
Data flow diagramData flow diagram
Data flow diagram
 
Data Flow Diagram
Data Flow DiagramData Flow Diagram
Data Flow Diagram
 
Data Flow Diagram or DFD
Data Flow Diagram  or DFDData Flow Diagram  or DFD
Data Flow Diagram or DFD
 
208 dataflowdgm
208 dataflowdgm208 dataflowdgm
208 dataflowdgm
 
Data Flow Diagram (DFD)
Data Flow Diagram (DFD)Data Flow Diagram (DFD)
Data Flow Diagram (DFD)
 
Data Flow Diagram
Data Flow DiagramData Flow Diagram
Data Flow Diagram
 
DFD Concept
DFD ConceptDFD Concept
DFD Concept
 
Data flow Diagram (DFD)
Data flow Diagram (DFD)Data flow Diagram (DFD)
Data flow Diagram (DFD)
 
Dfd final
Dfd finalDfd final
Dfd final
 
Chapter7
Chapter7Chapter7
Chapter7
 
Data Flow Diagram
Data Flow DiagramData Flow Diagram
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)
 
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
 
Data Flow Diagram_DFD
Data Flow Diagram_DFDData Flow Diagram_DFD
Data Flow Diagram_DFD
 
Data Flow Diagram
Data Flow DiagramData Flow Diagram
Data Flow Diagram
 
Data flow diagrams (2)
Data flow diagrams (2)Data flow diagrams (2)
Data flow diagrams (2)
 

Destaque

Legal Issues for Marketing Teams - Part 01 - Muck up the overall impression
Legal Issues for Marketing Teams - Part 01 - Muck up the overall impressionLegal Issues for Marketing Teams - Part 01 - Muck up the overall impression
Legal Issues for Marketing Teams - Part 01 - Muck up the overall impressionVerity White
 
Wms для логистических операторов
Wms для логистических операторовWms для логистических операторов
Wms для логистических операторовOlga Bezotosnaya
 
Business process mapping
Business process mappingBusiness process mapping
Business process mappingNiyati Mehta
 
How business process mapping saved an IT project.
How business process mapping saved an IT project.How business process mapping saved an IT project.
How business process mapping saved an IT project.Garrett Hunter
 
Business process analysis and optimization: A pragmatic approach to business ...
Business process analysis and optimization: A pragmatic approach to business ...Business process analysis and optimization: A pragmatic approach to business ...
Business process analysis and optimization: A pragmatic approach to business ...Mozammel Hoque
 
System flow charts @ doms
System flow charts @  domsSystem flow charts @  doms
System flow charts @ domsBabasab Patil
 
All process maps 18 blueprints all process-maps
All process maps 18 blueprints all process-mapsAll process maps 18 blueprints all process-maps
All process maps 18 blueprints all process-mapsLidnaaidnilas
 
Perencanaan Kebutuhan Warehouse (Excelogic Consulting)
Perencanaan Kebutuhan Warehouse (Excelogic Consulting)Perencanaan Kebutuhan Warehouse (Excelogic Consulting)
Perencanaan Kebutuhan Warehouse (Excelogic Consulting)PT Inti Logika Cipta
 
Simple Process Mapping Techniques
Simple Process Mapping TechniquesSimple Process Mapping Techniques
Simple Process Mapping TechniquesStephen Deas
 
Dfd examples
Dfd examplesDfd examples
Dfd examplesMohit
 
Data Flow Diagram Example
Data Flow Diagram ExampleData Flow Diagram Example
Data Flow Diagram ExampleKaviarasu D
 

Destaque (13)

Legal Issues for Marketing Teams - Part 01 - Muck up the overall impression
Legal Issues for Marketing Teams - Part 01 - Muck up the overall impressionLegal Issues for Marketing Teams - Part 01 - Muck up the overall impression
Legal Issues for Marketing Teams - Part 01 - Muck up the overall impression
 
Wms для логистических операторов
Wms для логистических операторовWms для логистических операторов
Wms для логистических операторов
 
Business process mapping
Business process mappingBusiness process mapping
Business process mapping
 
How business process mapping saved an IT project.
How business process mapping saved an IT project.How business process mapping saved an IT project.
How business process mapping saved an IT project.
 
Business process analysis and optimization: A pragmatic approach to business ...
Business process analysis and optimization: A pragmatic approach to business ...Business process analysis and optimization: A pragmatic approach to business ...
Business process analysis and optimization: A pragmatic approach to business ...
 
System flow charts @ doms
System flow charts @  domsSystem flow charts @  doms
System flow charts @ doms
 
Warehouselayout
WarehouselayoutWarehouselayout
Warehouselayout
 
All process maps 18 blueprints all process-maps
All process maps 18 blueprints all process-mapsAll process maps 18 blueprints all process-maps
All process maps 18 blueprints all process-maps
 
Perencanaan Kebutuhan Warehouse (Excelogic Consulting)
Perencanaan Kebutuhan Warehouse (Excelogic Consulting)Perencanaan Kebutuhan Warehouse (Excelogic Consulting)
Perencanaan Kebutuhan Warehouse (Excelogic Consulting)
 
Process Mapping
Process MappingProcess Mapping
Process Mapping
 
Simple Process Mapping Techniques
Simple Process Mapping TechniquesSimple Process Mapping Techniques
Simple Process Mapping Techniques
 
Dfd examples
Dfd examplesDfd examples
Dfd examples
 
Data Flow Diagram Example
Data Flow Diagram ExampleData Flow Diagram Example
Data Flow Diagram Example
 

Semelhante a DFD & CRC: Understanding Data Flow Diagrams and Class Responsibility Collaboration Modeling

Structured system analysis and design
Structured system analysis and design Structured system analysis and design
Structured system analysis and design Jayant Dalvi
 
DFDs_and_Algorithms.pptx
DFDs_and_Algorithms.pptxDFDs_and_Algorithms.pptx
DFDs_and_Algorithms.pptxAliyahAli19
 
topic 2 data flow daigram topic-converted.pdf
topic 2 data flow daigram topic-converted.pdftopic 2 data flow daigram topic-converted.pdf
topic 2 data flow daigram topic-converted.pdftahir427002
 
6.SE_Requirements Modeling.ppt
6.SE_Requirements Modeling.ppt6.SE_Requirements Modeling.ppt
6.SE_Requirements Modeling.pptHaiderAli252366
 
Elements analysis dfd_er_std
Elements analysis dfd_er_stdElements analysis dfd_er_std
Elements analysis dfd_er_stdAmmar Jamali
 
Unit-2-SE-Part-2.pptx
Unit-2-SE-Part-2.pptxUnit-2-SE-Part-2.pptx
Unit-2-SE-Part-2.pptxRaghavGaming2
 
dataflowdiagram2 121005140736-phpapp01
dataflowdiagram2 121005140736-phpapp01dataflowdiagram2 121005140736-phpapp01
dataflowdiagram2 121005140736-phpapp01Shashi soni
 
Data Flow Diagram (DFD)
Data Flow Diagram (DFD)Data Flow Diagram (DFD)
Data Flow Diagram (DFD)Ansh Kashyap
 
Data flow diagram(19th march)
Data flow diagram(19th march)Data flow diagram(19th march)
Data flow diagram(19th march)Ravi Shekhar
 
Hi600 u05_inst_slides
Hi600 u05_inst_slidesHi600 u05_inst_slides
Hi600 u05_inst_slidesljmcneill33
 
Object oriented analysis_and_design_v2.0
Object oriented analysis_and_design_v2.0Object oriented analysis_and_design_v2.0
Object oriented analysis_and_design_v2.0Ganapathi M
 
Lecture#5.pptx
Lecture#5.pptxLecture#5.pptx
Lecture#5.pptxGulRana13
 
Design Flow Diagram for Information System
Design Flow Diagram for Information SystemDesign Flow Diagram for Information System
Design Flow Diagram for Information Systemarifasyrafcp13
 

Semelhante a DFD & CRC: Understanding Data Flow Diagrams and Class Responsibility Collaboration Modeling (20)

DFD.pptx
DFD.pptxDFD.pptx
DFD.pptx
 
Structured system analysis and design
Structured system analysis and design Structured system analysis and design
Structured system analysis and design
 
DFDs_and_Algorithms.pptx
DFDs_and_Algorithms.pptxDFDs_and_Algorithms.pptx
DFDs_and_Algorithms.pptx
 
topic 2 data flow daigram topic-converted.pdf
topic 2 data flow daigram topic-converted.pdftopic 2 data flow daigram topic-converted.pdf
topic 2 data flow daigram topic-converted.pdf
 
6.SE_Requirements Modeling.ppt
6.SE_Requirements Modeling.ppt6.SE_Requirements Modeling.ppt
6.SE_Requirements Modeling.ppt
 
Data flow diagram
Data flow diagramData flow diagram
Data flow diagram
 
Elements analysis dfd_er_std
Elements analysis dfd_er_stdElements analysis dfd_er_std
Elements analysis dfd_er_std
 
Unit-2-SE-Part-2.pptx
Unit-2-SE-Part-2.pptxUnit-2-SE-Part-2.pptx
Unit-2-SE-Part-2.pptx
 
dataflowdiagram2 121005140736-phpapp01
dataflowdiagram2 121005140736-phpapp01dataflowdiagram2 121005140736-phpapp01
dataflowdiagram2 121005140736-phpapp01
 
Data Flow Diagram (DFD)
Data Flow Diagram (DFD)Data Flow Diagram (DFD)
Data Flow Diagram (DFD)
 
Data flow diagram(19th march)
Data flow diagram(19th march)Data flow diagram(19th march)
Data flow diagram(19th march)
 
Data Flow Diagram.pptx
Data Flow Diagram.pptxData Flow Diagram.pptx
Data Flow Diagram.pptx
 
Hi600 u05_inst_slides
Hi600 u05_inst_slidesHi600 u05_inst_slides
Hi600 u05_inst_slides
 
Ooad ch 2
Ooad ch 2Ooad ch 2
Ooad ch 2
 
DBMS ppts unit1.pptx
DBMS ppts  unit1.pptxDBMS ppts  unit1.pptx
DBMS ppts unit1.pptx
 
Object oriented analysis_and_design_v2.0
Object oriented analysis_and_design_v2.0Object oriented analysis_and_design_v2.0
Object oriented analysis_and_design_v2.0
 
DFD.pptx
DFD.pptxDFD.pptx
DFD.pptx
 
Df dtutorial
Df dtutorialDf dtutorial
Df dtutorial
 
Lecture#5.pptx
Lecture#5.pptxLecture#5.pptx
Lecture#5.pptx
 
Design Flow Diagram for Information System
Design Flow Diagram for Information SystemDesign Flow Diagram for Information System
Design Flow Diagram for Information System
 

Último

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Último (20)

Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

DFD & CRC: Understanding Data Flow Diagrams and Class Responsibility Collaboration Modeling

  • 1.
  • 4. We will discuss.. • DFD • Components of DFD • Levels of DFD • Class • How to identify class and responsibility. • Subclass • Superclass • Object • Responsibility • Collaboration
  • 5. Data Flow Diagram • Data flow diagram is graphical representation of flow of data in an information system. It is capable of depicting incoming data flow, outgoing data flow and stored data. The DFD does not mention anything about how data flows through the system. • There is a prominent difference between DFD and Flowchart. The flowchart depicts flow of control in program modules. DFDs depict flow of data in the system at various levels. DFD does not contain any control. • Types of DFD • Data Flow Diagrams are either Logical or Physical. • Logical DFD - This type of DFD concentrates on the system process, and flow of data in the system. For example in a Banking software system, how data is moved between different entities. • Physical DFD - This type of DFD shows how the data flow is actually implemented in the system. It is more specific and close to the implementation.
  • 6. DFD Components • DFD can represent Source, destination, storage and flow of data using the following set of components.
  • 7. DFD Components • Entities - Entities are source and destination of information data. Entities are represented by a rectangles with their respective names. • Process - Activities and action taken on the data are represented by Circle or Round-edged rectangles. • Data Storage - There are two variants of data storage - it can either be represented as a rectangle with absence of both smaller sides or as an open-sided rectangle with only one side missing. • Data Flow - Movement of data is shown by pointed arrows. Data movement is shown from the base of arrow as its source towards head of the arrow as destination.
  • 8. Level of DFD • Level 0 - Highest abstraction level DFD is known as Level 0 DFD, which depicts the entire information system as one diagram concealing all the underlying details. Level 0 DFDs are also known as context level DFDs.
  • 9. Level 1 • The Level 0 DFD is broken down into more specific, Level 1 DFD. Level 1 DFD depicts basic modules in the system and flow of data among various modules. Level 1 DFD also mentions basic processes and sources of information.
  • 10. Level 2 • At this level, DFD shows how data flows inside the modules mentioned in Level 1. • Higher level DFDs can be transformed into more specific lower level DFDs with deeper level of understanding unless the desired level of specification is achieved.
  • 11. Class, Responsibility, and Collaborator(CRC) • A class represents a collection of similar objects. • A responsibility is anything that a class knows or does. • Responsibilities are the attributes and operations that are relevant for the class. • A collaborator is another class that is used to get information for, or performs actions for the class at hand. • Collaborators are those classes that are required to provide a class with the information needed to complete a responsibility.
  • 12. CRC Modelling • A CRC model is really a collection of standard index cards that represent classes. The cards are divided into three sections. Along the top of the card you write the name of the class. In the body of the card you list the class responsibilities on the left and the collaborators on the right.
  • 14. Classes • Entity classes, also called model or business classes, are extracted directly from the statement of the problem. • Boundary classes are used to create the interface (e.g., interactive screen or printed reports). • Controller classes manage a “unit of work” from start to finish.
  • 15. Identify class • Use nouns in requirements • Noun phrases leads to objects
  • 17. Identify responsibility • Twice a year the company publishes a catalog of products, which is mailed to customers and other interested people. • Customers purchase products by submitting a list of products with payment to the company. The company fills the order and ships the products to the customer’s address. • The order processing software will track the order from the time it is received until the product is shipped. • The company will provide quick service. They should be able to ship a customer’s order by the fastest, most efficient means possible. Verb phrases lead to responsibilities.. For Example.. Imagine that you are developing order-processing software for a mail- order company, a reseller of products purchased from various suppliers.
  • 18. Responsibilities Publishes a catalog Is mailed to customers Purchases products; submitting Fills the order Ships the products; is shipped Track the order Is received Provides quick service collaborationsResponsibility
  • 19. Summary • DFD • Components of DFD • LEVELs of DFD • Class: The blueprint for an object. • Subclass: A class that inherits from one or more classes. • Superclass: The class from which another class inherits. • Object: Something that can do things. An object has state, behavior, and identity. The structure and behavior of similar objects are defined in their common class. • Responsibility: Some behavior for which an object is held accountable. A responsibility denotes the obligation of an object to provide a certain behavior. • Collaboration: The process whereby several objects cooperate to provide some higher-level behavior.