Lecture2010 6
Lecture2010 6
LECTURE 6:
Traditional Approach to Requirements
1
Lecture Outline
3
Traditional Approach vs. OO
Approach
4
Requirements for the Traditional
and OO Approaches
5
Data Flow Diagrams (DFDs)
Inputs/outputs
Processes
Data storage
7
Data
Flow
Diagram
Symbols
8
DFD Fragment Showing Use Case
Look Up Item Availability from the
RMO
9
DFD Integrates Event Table and
ERD
10
DFD and Levels of Abstraction
DFD is a modeling technique that breaks the system into a hierarchical set
of increasingly more detailed models
DFD may reflect the processing at either a higher level (more general view of
the system) or at lower level (a more detailed view of one process)
These different views of the system (higher level versus low level) creates
the levels of abstraction
12
Context Diagrams
14
Notes on Context Diagrams
16
DFD Fragments
Self-contained models
17
Three Separate DFD Fragments
for Course Registration System
18
Event-Partitioned System Model
20
Layers of
DFD
Abstraction
21
RMO Subsystems and Use
Cases/Activities from Event Table
22
Context Diagram for RMO
Order-Entry Subsystem
23
Five Separate DFD Fragments for
RMO Order-Entry Subsystem
24
The event-
partitioned
model of the
Order-Entry
subsystem
(diagram 0)
25
Decomposing DFD Fragments
27
Hierarchy of the DFDs
29
FIGURE 6-20 Incorrect and correct
way to draw DFD. 30
Physical and Logical DFDs
Logical model
Physical model
32
Evaluating DFD Quality
Readable
Internally consistent and balanced
Accurately represents system requirements
Reduces information overload – rule of 7
+/- 2
Single DFD should not have more than 7 +/-2
processes
No more than 7 +/- 2 data flows should enter or
leave a process or data store in a single DFD
Minimizes required number of interfaces
33
Data Flow Consistency Problems
35
Unnecessary Data Input: Black
Hole
36
Process with Impossible Data
Output: a Miracle
37
Process with Unnecessary Data
Input
38
Process with Impossible Data
Output
39
Documentation of DFD
Components
40
Process Descriptions
42
Structured English Example
43
Process 2.1 and Structured
English Process Description
44
A structured English
process description for
calculating shipping
charges
45
Decision Tables and Decision Trees
Can summarize complex decision
logic better than structured English
Incorporate logic into the table or
tree structure to make descriptions
more readable
46
Decision Table for Calculating
Shipping Charges
47
Decision Tree for Calculating
Shipping Charges
48
A Decision Table with Multiple Action
Rows
49
Data Flow Definitions
Data flow is a collection of data elements
Data flow definition is a textual description of data
flow’s content and internal structure
Lists all the elements, e.g. a “New Order” data flow
consists of Customer–Name, Customer-Address, Credit-
Card-Information, Item-Number and Quantity
Often coincide with attributes of data entities included in
ERD plus computed values
Algebraic notion is alternative to the list
Describes data elements on data flow plus data structure
50
List and Algebraic Notation for
Data Flow Definition
51
RMO Products
and Items
Report
52
Data Flow Definition for RMO
Products and Items Control Break
Report
53
Data Element Definitions
55
Data Store Definitions
A data store on the DFD represents
a data entity on the ERD (so, no
separate definition is needed, just a
note referring to the ERD for details)
If a data store are not linked to an
ERD, a definition is provided as a
collection of elements (like did for
data flows)
56
Components of a Traditional
Analysis Model
Four components of a traditional analysis model are
– Data flow diagrams
– Entity-relationship diagram
– Process definitions
– Data definitions
They form an interlocking set of specifications for
system requirements
DFD shows highest-level view of the system
Other components describe some aspect of DFD
These models were created in the 1970’s and
1980’s as a part of the structured analysis
methodology
57
Components of a Traditional
Analysis Model
58
Locations and Communication
Through Networks
Physical information needed during analysis
Number of user locations
Processing and data access requirements at
various locations
Volume and timing of processing and data
access requests
Needed to make initial design decisions
such as
Distribution of computer systems, application
software, database components, network
capacity
59
Gathering Location Information
61
RMO Activity-Location Matrix
62
RMO Activity-Data Matrix (CRUD)
63
Readings
!!!
u
For next lecture: Chapter 7 – “The Object-
yo
Oriented Approach to Requirements”
nk
a
Th
64