the traditional approach to requirements

download the traditional approach to requirements

of 49

Transcript of the traditional approach to requirements

  • 8/12/2019 the traditional approach to requirements

    1/49

    6Systems Analysis and Design in a

    Changing World, Fourth Edition

  • 8/12/2019 the traditional approach to requirements

    2/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 2

  • 8/12/2019 the traditional approach to requirements

    3/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 6

    Traditional versus Object-Oriented

    Approaches

  • 8/12/2019 the traditional approach to requirements

    4/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 7

    Traditional Approach in this Chapter

  • 8/12/2019 the traditional approach to requirements

    5/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 8

    Data Flow Diagrams (DFDs)

    Graphical system model that shows all mainrequirements for an IS in one diagram

    Inputs/outputs

    Processes

    Data storage

    Easy to read and understand with minimal

    training

  • 8/12/2019 the traditional approach to requirements

    6/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 9

    Data FlowDiagram

    Symbols(Figure 6-3)

  • 8/12/2019 the traditional approach to requirements

    7/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 10

    DFD Fragment Showing Use Case Look

    up item availabilityfrom the RMO (Figure 6-4)

  • 8/12/2019 the traditional approach to requirements

    8/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 12

    DFD Integrates Event Table and ERD

  • 8/12/2019 the traditional approach to requirements

    9/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 13

    DFD and Levels of Abstraction

    Data flow diagrams (DFDs) are decomposed intoadditional diagrams to provide multiple levels of

    detail

    Higher-level diagrams provide general views ofsystem

    Lower-level diagrams provide detailed views of

    system

    Differing views are called levels of abstraction

  • 8/12/2019 the traditional approach to requirements

    10/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 14

    Layers of

    DFD

    Abstraction

    for Course

    RegistrationSystem

    (Figure 6-6)

  • 8/12/2019 the traditional approach to requirements

    11/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 15

    Context Diagrams

    DFD that summarizes all processing activity forthe system or subsystem

    Highest level (most abstract) view of system

    Shows system boundaries

    System scope is represented by a single process,external agents, and all data flows into and out ofthe system

  • 8/12/2019 the traditional approach to requirements

    12/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 16

    DFD Fragments

    Created for each use case in the event table

    Represent system response to one event within a

    single process symbol

    Self-contained models

    Focus attention on single part of system

    Show only data stores required in the use case

  • 8/12/2019 the traditional approach to requirements

    13/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 17

    Three Separate DFD Fragments for Course

    Registration System

  • 8/12/2019 the traditional approach to requirements

    14/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 18

    Event-Partitioned System Model

    DFD to model system requirements using single process

    for each use case/activity in system or subsystem

    Combines all DFD fragments together to show

    decomposition of the context-level diagram

    Sometimes called diagram 0

    Used primarily as a presentation tool

    Decomposed into more detailed DFD fragments

  • 8/12/2019 the traditional approach to requirements

    15/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 19

    DFD Fragments for Course

    Registration System

  • 8/12/2019 the traditional approach to requirements

    16/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 20

    CombiningDFD

    Fragments to

    Create

    Event-Partitioned

    System

    Model(Figure 6-8)

  • 8/12/2019 the traditional approach to requirements

    17/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 22

    RMO Subsystems and Use Cases/Activities from

    Event Table (Figure 6-10)

  • 8/12/2019 the traditional approach to requirements

    18/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 23

    RMO Activity-Data Matrix (CRUD)(Figure 6-39)

    6

  • 8/12/2019 the traditional approach to requirements

    19/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 24

    Context Diagram for RMO

    Order-Entry Subsystem (Figure 6-11)

    6

  • 8/12/2019 the traditional approach to requirements

    20/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 25

    Five Separate DFD Fragments for RMO

    Order-Entry Subsystem (Figure 6-12)

    6

  • 8/12/2019 the traditional approach to requirements

    21/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 26

    Decomposing DFD Fragments

    Most DFD fragments can be further described usingstructured English

    Sometimes DFD fragments need to be diagrammed inmore detail

    Decomposed into subprocesses in a detailed DFD

    DFD numbering scheme

    Hierarchical decomposition

    DFD Fragment 2 is decomposed into Diagram 2

    Diagram 2 has processes 2.1, 2.2, 2.3, 2.4

    6

  • 8/12/2019 the traditional approach to requirements

    22/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 27

    Detailed

    DFD for

    Create

    new order

    DFDFragment(Figure 6-14)

    6

  • 8/12/2019 the traditional approach to requirements

    23/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 28

    Physical and Logical DFDs

    Logical model

    Assumes implementation in perfect technology

    Does not tell how system is implemented

    Physical model

    Describes assumptions about implementation

    technology

    Developed in last stages of analysis or in early

    design

    6

  • 8/12/2019 the traditional approach to requirements

    24/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 29

    Physical

    DFD for

    Scheduling

    Courses(Figure 6-15)

    6

  • 8/12/2019 the traditional approach to requirements

    25/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 30

    Evaluating DFD Quality

    Readable Internally consistent and balanced

    Accurately represents system requirements

    Reduces information overloadrule 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

    6

  • 8/12/2019 the traditional approach to requirements

    26/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 31

    Data Flow Consistency Problems

    Differences in data flow content between aprocess and its process decomposition

    Data outflows without corresponding inflows

    Data inflows without corresponding outflows

    Results in unbalanced DFDs

    6

  • 8/12/2019 the traditional approach to requirements

    27/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 32

    Consistency Rules

    All data that flows into a process must

    Flow out of the process, or

    Be used to generate data that flows out of theprocess

    All data that flows out of a process must

    Have flowed into the process, or

    Have been generated from data that flowed into

    the process

    6

  • 8/12/2019 the traditional approach to requirements

    28/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 33

    Unnecessary Data Input: Black Hole

    6

  • 8/12/2019 the traditional approach to requirements

    29/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 34

    Process with Impossible Data Output:

    Miracle

    Should be

    6

  • 8/12/2019 the traditional approach to requirements

    30/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 35

    Process with Unnecessary Data Input(Figure 6-18)

    6

  • 8/12/2019 the traditional approach to requirements

    31/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 36

    Process with Impossible Data Output(Figure 6-19)

    6

  • 8/12/2019 the traditional approach to requirements

    32/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 37

    Documentation of DFD Components

    Lowest-level processes need to be described indetail

    Data flow contents need to be described

    Data stores need to be described in terms of data

    elements

    Each data element needs to be described

    Various options for process definition exist

    6

  • 8/12/2019 the traditional approach to requirements

    33/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 38

    Structured English

    Method of writing process specifications

    Combines structured programming techniques

    with narrative English

    Well-suited for lengthy sequential processes or

    simple control logic (single loop or if-then-else)

    Ill-suited for complex decision logic or few (or no)

    sequential processing steps

    6

  • 8/12/2019 the traditional approach to requirements

    34/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 39

    Structured English Example (Figure 6-20)

    6

  • 8/12/2019 the traditional approach to requirements

    35/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 40

    Process 2.1 and Structured

    English Process Description (Figure 6-21)

    6

  • 8/12/2019 the traditional approach to requirements

    36/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 41

    Decision Tables and Decision Trees

    Can summarize complex decision logic better than structuredEnglish

    Incorporate logic into the table or tree structure to make

    descriptions more readable

    6

  • 8/12/2019 the traditional approach to requirements

    37/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 42

    Decision Tree for Calculating

    Shipping Charges (Figure 6-24)

    6

  • 8/12/2019 the traditional approach to requirements

    38/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 45

    Data Element Definitions

    Data type description

    String, integer, floating point, Boolean

    Sometimes very specific written description

    Length of element

    Maximum and minimum values

    Data dictionaryrepository for definitions of data

    flows, data stores, and data elements

    6

  • 8/12/2019 the traditional approach to requirements

    39/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 46

    Data Element Definition Examples(Figure 6-30)

    6

  • 8/12/2019 the traditional approach to requirements

    40/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 47

    Components of a Traditional Analysis Model(Figure 6-31)

    6

  • 8/12/2019 the traditional approach to requirements

    41/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 48

    Information Engineering Models

    Focus on strategic planning, enterpriseapplications, and data requirements of new

    system

    Share features with structured system

    development methodology

    Developed by James Martin in early 1980s

    Thought to be more rigorous and complete than

    the structured approach

    6

  • 8/12/2019 the traditional approach to requirements

    42/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 49

    Information Engineering System

    Development Life Cycle Phases

    ISP BAA

    BSDConstruction

    6

  • 8/12/2019 the traditional approach to requirements

    43/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 50

    Process Decomposition and Dependency

    Models

    IE process models show three information types Decomposition of processes into other processes

    Dependency relationships among processes

    Internal processing logic

    Process decomposition diagramrepresents

    hierarchical relationship among processes at

    different levels of abstraction

    Process dependency modeldescribes ordering

    of processes and interaction with stored entities

    6

  • 8/12/2019 the traditional approach to requirements

    44/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 51

    Process

    DecompositionDiagram for RMO(Figure 6-34)

    6

  • 8/12/2019 the traditional approach to requirements

    45/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 52

    Process Dependency Diagram (Figure 6-35)

    6

  • 8/12/2019 the traditional approach to requirements

    46/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 56

    RMO Activity-Data Matrix (CRUD)(Figure 6-39)

    6

  • 8/12/2019 the traditional approach to requirements

    47/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 57

    Summary

    Data flow diagrams (DFDs) are used in combination withevent table and entity-relationship diagram (ERD) to

    model system requirements

    DFDs model system as set of processes, data flows,

    external agents, and data stores

    DFDs easy to readgraphically represent key features of

    system using small set of symbols

    Many types of DFDscontext diagrams, DFD fragments,

    subsystem DFDs, event-partitioned DFDs, and detailed

    process DFDs

    6

  • 8/12/2019 the traditional approach to requirements

    48/49

    6

    Systems Analysis and Design in a Changing World, 4th Edition 58

    Summary (continued)

    Each process, data flow, and data store requiresdetailed definition

    Analyst may define processes as structuredEnglish process specifications, decision tables,decision trees, or detail process DFDs

    Detailed process decomposition DFDs usedwhen internal process complexity is great

    Data flows are defined by component dataelements and their internal structure (algebraicnotation)

    6

  • 8/12/2019 the traditional approach to requirements

    49/49

    Summary (continued)

    Models from IE may supplement DFDs Process decomposition diagram (how processes

    on multiple DFD levels are related)

    Process dependency diagram (emphasizesinteraction with stored entities)

    Location diagram (where system is used)

    Activity-location matrix (which processes are

    implemented at which locations)

    Activity-data (or CRUD) matrix (where data isused)