45
CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

  • View
    216

  • Download
    2

Embed Size (px)

Citation preview

Page 1: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

CS 551 – Requirements and Prototyping Fall 2004

Thanks to Rand Edwards and Ian Summerville for this material

Page 2: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Software Requirements Process

Requirements Elicitation Requirements Analysis Use Cases Requirements Specification Prototype Requirements Management

Page 3: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Requirements Specification Spec

1. Project Title, Revision Number and Author2. Scope and Purpose of the system3. Measurable Operational Value4. Description5. Feature List including ICED T and Simplified QFD

analysis6. Interfaces7. Constraints8. Change Log and Expected Changes9. Responses to the unexpected10. Measurements11. Glossary12. References

Page 4: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Requirements Engineering Process

Requirements Document & Validation Report

Requirements ElicitationRequirements Elicitation

Requirements AnalysisRequirements Analysis

Agreed Requirements

Prospectus

Decision Point: Accept Document or re-enter spiral

Requirements SpecificationRequirements Specification

Requirements ValidationRequirements Validation

Prototype

Simple QFD

Baseline Document

Page 5: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Key Question

What’s the problem?

Page 6: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Prospectus & Elicitation

What Information do we need?• Description of the Problem

• Description of the Environment

• Scope of Solution

• A list of project goals

• Any constraints on the behavior or structure of the solution-system

Page 7: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Interviews

Scenarios

Prototypes

Facilitated Meetings

Observation

Elicitation Techniques

Page 8: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Use Cases Drive Development

Use Cases

Test Case Design

Architecture and Design

Page 9: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Elicitation Challenges

Experts don’t know what they know!• Much knowledge is tacit thru extensive use• Difficult to dig it out• Know-how expressed as solutions

Analysts are domain novices• Tend to simplify • Often miss key functions

Page 10: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Mapping Requirements to a Framework

ICED T• Intuition• Consistent• Efficient• Durable

• Thoughtful

UML Framework• Use Cases• Structure • Business Rules

PMO Models

Requirements

ElicitationReports

Use Cases

Use Cases

Static Structure

Static Structure

Activity Model

Activity Model

Page 11: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

ICED T Mappings

Ratings

1 = ‘Worst I have ever seen’

2 = ‘Worse than Average’

3 = ‘Average, like most other systems’

4 = ‘Better than Average’

5 = ‘Best I have ever seen’

Page 12: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Simplified QFD (scale 0 to 10)

Goals/Features Track Delivery Trucks

.On-line Customer Inquiry

Credit Check

1. Easy to Order 0 9 3

2. 10% Less Inventory

0 0 0

3. 20% Profit Increase

3 9 9

4. Speed Product Introduction

0 9 0

Total 3 27 12

Page 13: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Package Diagram

Groups related use cases Forms basis for a

functional partitioning from the users point of view.

Shorthand for tracking within the project

Order Entry

ViewStatus

Create & Submit Orders

Page 14: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Activity Chart

EnterOrder

CheckCredit

[submitted]

[aborted]

[denied]

AllocateInventory

[approved]

PrepareDelivery

ReceivePayment

Create Order& Submit

<<trace>>

Order Entry Finance FinanceShippingInventory

Management

Page 15: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Required Measurements

Function Points ICED T Consistency = %features with average QFD > 7 Stability = feature changes/month

Page 16: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Prototyping

Prototyping is the rapid development of a system The principal use is to help customers and developers

understand the requirements for the system• Requirements elicitation – Users can experiment with a prototype to

see how the system supports their work

• Requirements validation – The prototype can reveal errors and omissions in the requirements

Prototyping can be considered as a risk reduction activity– As of 23 Sept.

Page 17: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Five Great Patterns

Solo Virtuoso

Code Ownership

Engage QA

Divide and Conquer Prototype

Reference: Technical Memorandum by J. O. Coplien Document No. BL0112650-940906-50TM

Page 18: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Product Size Reduction

TRADITIONAL PROCESS PROTOTYPING

40% REDUCTION

20%

80%

40%

30%

45%

25%

SystemsEngineering

Design,Develop,

Test,Install

FinalDevelopment,Deployment

SystemsEngineering &

Prototype

FinalDevelopment

Deployment

Page 19: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Prototyping Benefits

Misunderstandings between software users and developers are exposed

Missing services may be detected and confusing services may be identified

A working system is available early in the process The prototype may serve as a basis for deriving a

system specification The system can support user training and system

testing

Page 20: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Approaches to Prototyping

Prospectus

Evolutionaryprototyping

Throw-awayPrototyping

Deliveredsystem

Executable Prototype +System Specification

Page 21: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Prototyping Objectives

The objective of evolutionary prototyping is to deliver a working system to end-users• The development starts with those requirements

which are best understood. The objective of throw-away prototyping is to

validate or derive the system requirements• The prototyping process starts with those

requirements which are poorly understood

Page 22: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Evolutionary Prototyping

Must be used for systems where the requirements specification cannot be developed in advance

Based on techniques which allow rapid system iterations

Verification is impossible as there is no specification

Validation means demonstrating the adequacy of the system

Page 23: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Evolutionary Prototyping

Build prototypesystem

Develop abstractspecification

Use prototypesystem

Deliversystem

Systemadequate?

YES

N

Page 24: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Evolutionary Prototyping Advantages

Accelerated delivery of the system• Rapid delivery and deployment are sometimes more important

than functionality or long-term software maintainability

User engagement with the system• Not only is the system more likely to meet user requirements,

they are more likely to commit to the use of the system

Page 25: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Evolutionary Prototyping

Specification, design and implementation are inter-twined

The system is developed as a series of increments that are delivered to the customer

Techniques for rapid system development are used such as CASE tools and 4GLs

User interfaces are usually developed using a GUI development toolkit

Page 26: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Evolutionary Prototyping Problems

Management problems• Existing management processes assume a waterfall

model of development

• Specialist skills are required which may not be available in all development teams

Maintenance problems• Continual change tends to corrupt system structure so

long-term maintenance is expensive Contractual problems

Page 27: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Prototypes as Specifications

Some parts of the requirements may be impossible to prototype• E.g., safety-critical functions

An implementation has no legal standing as a contract

Non-functional requirements cannot be adequately tested in a system prototype

Page 28: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Incremental Development

System is developed and delivered in increments after establishing an overall architecture

Requirements and specifications for each increment may be developed

Users may experiment with delivered increments while others are being developed• These serve as a form of prototype system

Intended to combine some of the advantages of prototyping • More manageable process• Better system structure

Page 29: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Incremental Development Process

Validateincrement

Build systemincrement

Specify systemincrement

Design systemarchitecture

Define systemdeliverables

Systemcomplete?

Integrateincrement

Validatesystem

Deliver finalsystem

YES

NO

Page 30: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Throw-away Prototypes

Used to reduce requirements risk The prototype is developed from an initial

specification, delivered for experiment then discarded

The throw-away prototype must NOT be considered as a final system• Some system characteristics may have been left out

• There is no specification for long-term maintenance

• The system will be poorly structured and difficult to maintain

Page 31: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Throw-away Prototyping

Outlinerequirements

Developprototype

Evaluateprototype

Specifysystem

Developsoftware

Validatesystem

Deliveredsoftwaresystem

Reusablecomponents

Page 32: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Rapid Prototyping Techniques

Various techniques may be used for rapid development• Dynamic high-level language development

• Database programming

• Component and application assembly These techniques are often used together Visual programming is an inherent part of most

prototype development systems

Page 33: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Dynamic High-level Languages

Languages which include powerful data management facilities

Need a large run-time support system. Not normally used for large system development

Some languages offer excellent UI development facilities

Some languages have an integrated support environment whose facilities may be used in the prototype

Page 34: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Choice of Prototyping Language

What is the application domain of the problem? What user interaction is required? What support environment comes with the

language? Different parts of the system may be programmed

in different languages Example languages

• Java, Smalltalk, Lisp, Prolog, Perl, Tcl/TK

Page 35: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Database Programming Languages

Domain specific languages for business systems based around a database management system

Normally include a database query language, a screen generator, a report generator and a spreadsheet

May be integrated with a CASE toolset The language + environment is sometimes known as a “4GL” Cost-effective for small to medium sized business systems

DBprogramming

language

Interfacegenerator Spreadsheet

Reportgenerator

Database management system

Fourth-generation language

Page 36: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Prototyping with Reuse

Application level development• Entire application systems are integrated with the prototype so

that their functionality can be shared

• For example, if text preparation is required, a standard word processor can be used

Component level development• Components are mutually independent

• Individual components are integrated within a standard framework to implement the system

• Framework can be a scripting language or an integration platform.

Page 37: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Key points

A prototype can be used to give end-users a concrete impression of the system’s capabilities

Prototyping is becoming increasingly used where rapid development is essential

Throw-away prototyping is used to understand the system requirements

In evolutionary prototyping, the system is developed by evolving an initial version to the final version

Page 38: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Key points

Rapid prototyping may require leaving out functionality or relaxing non-functional constraints

Prototyping techniques include the use of very high-level languages, database programming and prototype construction from reusable components

Prototyping is essential for parts of the system such as the user interface which cannot be effectively pre-specified

Users must be involved in prototype evaluation

Page 39: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Case History

Harbor Radar

CS 551 Senior Design

Page 40: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Project Overview

To primarily serve boaters in the Hudson River area with a 40 mile radius and inexpensive TV to display weather info, buoy data, and plotted locations

Interactive website• Accessible to everyone• Secure section where admin can control

information displayed with ability to plot coordinates and alter broadcast information

Difficult time writing requirements and setting scope

Page 41: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Requirements

Website Design-Easy to use, clean, intuitive and clearly display

maps Reliability

• High reliability requested by customer• Availability

» Ultimate goal of 24/7, however probably not doable. 20/7 has been suggested

Page 42: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Requirements (cont.)

Performance• Website will support 50 simultaneous users

» Reach for goal of 100• Television broadcast(s) place little load on the system• Response Time

» Average of .5s Constraints

• Television resolution will be an issue» Aim to be readable on a 9” screen

• Support both IE and Netscape, versions TBD

Page 43: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Map Module Screenshots

Page 44: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Larger View

Grid

Icons

Page 45: CS 551 – Requirements and Prototyping Fall 2004 Thanks to Rand Edwards and Ian Summerville for this material

Wrapper Module for TV Screens