120 likes | 280 Views
Data Flow Diagrams. Outline Components of DFD The structured analysis methodology DFD creation Guidelines Common errors. Components of DFD. External entity Process Data flow Data store *Data dictionary. Structured Analysis. Create a logical model of the system (draw a DFD)
E N D
Data Flow Diagrams • Outline • Components of DFD • The structured analysis methodology • DFD creation • Guidelines • Common errors
Components of DFD • External entity • Process • Data flow • Data store • *Data dictionary
Structured Analysis • Create a logical model of the system (draw a DFD) • Put the detail in a data dictionary • Define the logic of the processes • Define contents and immediate access for data stores • Create a functional specification
DFD Creation • Collect entities and their inputs/outputs with the system • Draw the context level DFD (Level 0) • Update data dictionary • Expand DFDs into next level DFDs • Repeat 3 and 4 until the overall DFDs are sufficient enough to satisfy all the requirements in detailed expression
Data Dictionary • Organize a dictionary to maintain the information of all components completely and consistently. • Double check titles, numbers, labels, and names with DFDs after creating DD.
Logic of Processes • Use decision tree to fetch possible branches for handling the input data flows • Use structured English (or PDL) to express the processes which perform these branches
Data Stores • Are these logical data stores the simplest possible? Can they be combined? Should they be combined? • What immediate accesses to the data stores will be needed, and how valuable is each type of access? • *Any existing data stores will do the job?
Some Guidelines • Choose meaningful names for processes, data stores, data flows, and external entities • Hierarchically number the processes • Avoid overly complex DFDs (no more than half a dozen bubbles per diagrams) • Redraw the DFDs as many times as necessary
Some Guidelines • Make sure your DFDs are logically consistent • Avoid processes w/o input flows and/or output flows • Beware of unlabeled components • Beware of read-only/write-only data stores
Common Errors • Only verb or noun in the process names • Labels are inconsistent in 2 levels • Labels are inconsistent in DFD and DD • Decomposition brings data stores into upper processes • Decomposition generates new data stores outside upper process
Common Errors • Data flows out but no data flows in, or vice versa • Two flows are connected together • The titles/numbers are different between two levels • Flows missing after decomposition • Redundant names for different components