Docsity

Requirements - Software Engineering I - Notes | EECS 448, Study notes of Software Engineering

Toggle sidebar
bg1
EECS 448 Dr. Douglas Niehaus ยฉ 20091
Requirements
Chapter 10
EECS 448
Dr. Douglas Niehaus
EECS 448 Dr. Douglas Niehaus ยฉ 20092
Determining What the Client Needs
๎˜Primary objective of the requirements WF is to
determine what features should be in the product to
satisfy the needs of the client
๎˜Client will almost always not know all of their
needs at a sufficient level of detail
๎˜Clients also often lack the proper vocabulary for
describing their needs in ways SWEs can use
๎˜ SWE must determine the needs of the client that the
product software will satisfying, in some way or other
๎˜Software issues are hard to understand for SWE
๎˜Harder for client
EECS 448 Dr. Douglas Niehaus ยฉ 20093
Overview of Requirements WF
๎˜First step is to gain an understanding of the target
domain in which the product offers a problem
solution
๎˜E.g. banking, space exploration, printing, or home
automation as the case may be
๎˜Once the SWE understands the relevant aspects of
the domain they can build a business model
๎˜UML diagrams describing the client's business
processes as a set of use cases
๎˜Model of activity is then used to determine the initial
set of requirements
๎˜Iterative process in virtually all cases
๎˜Requirements discovery and then refinement
EECS 448 Dr. Douglas Niehaus ยฉ 20094
Business Model
๎˜Describes the business process being address by
the product and is thus key to understanding product
requirements and is fundamental to analysis
๎˜Provides an understanding of the client's activities
as a whole and how the problem addressed by the
product fits in context
๎˜Building a business model
๎˜SWE must educate themselves about target
domain to learn the vocabulary and issues
๎˜SWE must learn the various business processes
๎˜Models are tested by explaining them to others
and comparison to the real world
๎˜Models of the processes are refined through
further investigation
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Requirements - Software Engineering I - Notes | EECS 448 and more Study notes Software Engineering in PDF only on Docsity!

EECS 448 1 Dr. Douglas Niehaus ยฉ 2009

Requirements

Chapter 10

EECS 448

Dr. Douglas Niehaus

EECS 448 2 Dr. Douglas Niehaus ยฉ 2009

Determining What the Client Needs

 Primary objective of the requirements WF is to

determine what features should be in the product to

satisfy the needs of the client

 Client will almost always not know all of their

needs at a sufficient level of detail

 Clients also often lack the proper vocabulary for

describing their needs in ways SWEs can use

 SWE must determine the needs of the client that the

product software will satisfying, in some way or other

 Software issues are hard to understand for SWE

 Harder for client

Overview of Requirements WF

 First step is to gain an understanding of the target

domain in which the product offers a problem

solution

 E.g. banking, space exploration, printing, or home

automation as the case may be

 Once the SWE understands the relevant aspects of

the domain they can build a business model

 UML diagrams describing the client's business

processes as a set of use cases

 Model of activity is then used to determine the initial

set of requirements

 Iterative process in virtually all cases

 Requirements discovery and then refinement

Business Model

 Describes the business process being address by

the product and is thus key to understanding product

requirements and is fundamental to analysis

 Provides an understanding of the client's activities

as a whole and how the problem addressed by the

product fits in context

 Building a business model

 SWE must educate themselves about target

domain to learn the vocabulary and issues

 SWE must learn the various business processes

 Models are tested by explaining them to others

and comparison to the real world

 Models of the processes are refined through

further investigation

EECS 448 5 Dr. Douglas Niehaus ยฉ 2009

Interviewing

 Interviewing is the primary technique to gain this

knowledge in many cases, but not all

 Reasoning from first principles

 Books, WWW, etc.

 SWE placing themselves in the role of the client

 Depends on the subject matter

 Two fundamental types of questions

 Closed-ended: require a specific answer

 What is a maximum acceptable response time?

 Open-ended: asked to encourage speaking out

 Why/How is the current software supporting this

business process unsatisfactory?

 What do you find annoying?

EECS 448 6 Dr. Douglas Niehaus ยฉ 2009

Interviewing

 Two basic kinds of interviews

 Structured

 Pre-planned questions that are frequently

closed-ended

 Unstructured

 Starts with a few prepared closed-ended

questions but

 Subsequent questions are in response to

previous answers and issues raised

 Subsequent questions are likely to be more

open ended and designed to explore new

issues raised

 Iteration is key โ€“ what you learn in one interview

influences what you do before and in the next

Interviewing

 Too little structure can be inefficient

 Knowledge revealed is too scattered

 New knowledge usually comes from

 Unexpected answers to closed-ended question

 Inability of client to answer closed-ended questions

 Open-ended questions - โ€œWhat annoys you?โ€

 SWE is a detective

 Answers are clues to further relevant questions

 Detailed domain knowledge is key to picking up on

subtle clues or implications of answers

 SWE need to advise clients on best use of computers

 Not all processes benefit from software support

Interviewing

 Interviewing well is difficult, interviewer must

 Be well informed about target domain

 Aware they still have much to learn

 Detect clues that they are confused or something

they believe to be true is in conflict with what they

are hearing New questions to reconcile conflict

 Remain open minded about client needs

 Listen carefully while suppressing preconceived

notions about the problem domain

 Take good notes

 After the interview it is advisable to write a report

describing what relevant issues

 Be prepared for everyone to disagree

 This is good! It focusses clarification/addition

EECS 448 13 Dr. Douglas Niehaus ยฉ 2009

Use Cases

 A model is a set of UML diagrams representing

components of a product being developed

 Use case is primary UML diagram used for

business modelling

 Use case models interaction among

users/environment and product in completing a

specific scenario

 Highlights a specific set of functions

 Related to each other in supporting this and

other use cases

 Excellent for generating tests

 Excellent for organizing iterative refinement

EECS 448 14 Dr. Douglas Niehaus ยฉ 2009

Use Cases

 Actors: users of the product

 Components of the outside world

 May fall into several categories

 May be other software products

 UML: stick figure with label

 SW components: rectangles

 Business Activity: label inside oval

Initial Requirements

 Initial requirements drawn up based on initial

business model

 Requirements are refined as the model is refined

 Requirements change frequently

 Handle changes by updating list of requirements

and how they correspond to sets of use cases

 Two categories

 Functional and non-functional

 Functional

 Actions the product must perform

 Often expressed in terms of input/output

 Handled during requirements and analysis WFs

Initial Requirements

 Non-functional Requirements

 Specify properties of a product

 Platform constraints, response time, reliability

 May wait until design work-flow

 Require more detailed knowledge

 Focus on properties of an architecture

 May not be available until R&A are complete

 Handle as early as possible R&A

 Book illustrates requirements WF with an art dealer

case study

 Specialized domain knowledge about paintings

and other aspects of art business

EECS 448 17 Dr. Douglas Niehaus ยฉ 2009

Initial Requirements

 Vocabulary for categorizing paintings

 Medium: oil, water, pastel, pencil

 Subject: portrait, landscape, still life

 Quality: Masterpiece, Masterwork, other

 All become domain glossary elements

EECS 448 18 Dr. Douglas Niehaus ยฉ 2009

Initial Requirements

 Art Dealer interview

 Considered utility of laptop supporting business

 Considered dealer's activities and concerns

 Painting pricing

 Algorithm for establishing maximum price

 Software should detect trends in art market

 Historical information storage and analysis

 Software should produce reports

 Initial model

 Activities: Buy, Sell, Report

 Use cases: Buy, Sell, Report

Initial Requirements

 Initial version can be quite simple

 Serves a basis for discussion, reaction, refinement

 Several quick iterations often produce better results

than trying to do too much at each stage

Initial Requirements

 Discussion with Art Dealer extracts initial

requirements from the initial use cases

 Discussion can also identify more use cases

 Initial descriptions are expanded in response to

information emerging from client interview

 OO analysis concentrates on refining precision of

the descriptions iteratively

EECS 448 25 Dr. Douglas Niehaus ยฉ 2009

Test Work-Flow

 While performing the requirements WF group

members must constantly try and check their work

 Explain use cases to others

 SQA group can check things

 Initially one is looking for

 Omissions, errors of fact, and contradictions

 Art Dealer case study uses fashionability coefficient

 Process identified a desired quantifier

 Semantics of it permit varying by month

 Use cases and descriptions extended

 Changes can happen at any time because insight

can happen at any time

EECS 448 26 Dr. Douglas Niehaus ยฉ 2009

Test Work-Flow

 Realizing the product

must permit the dealer

to change the

coefficient, the

interface requirements

are extended

 On-line versions of

diagrams and

documents are thus

vital as they are

frequently changed

Classical Requirements Phase

 In one sense, there can be no object-oriented

requirements phase as

 Aim is to determine client needs

 Requirements WF has nothing to do with how the

product is to be structured

 Policy, not yet mechanism

 In another sense, the entire approach is OO, since

 It is model oriented and the world is littered with

objects of one kind or another

 Use cases and the components of their

descriptions form the basis of requirements WF

 Modelling components are, generally, objects

Classical Requirements Phase

 Classical requirements phase

 Starts with requirements elicitation

 Followed by requirements analysis

 Next is to draw up a list of requirements

 Usual next step is to build a rapid prototype (RP)

 Implements the key functionality underlying the

requirements, providing something concrete for

the client to react to

 Feedback from client supports adjustment to

RP and requirements

 Building a RP emphasizing the user-interface is

advisable, rather than internal components

 All aspects should be traceable

EECS 448 29 Dr. Douglas Niehaus ยฉ 2009

Classical Requirements Phase

 Traceability ensures all relevant aspects of the

requirements can be related to aspects of the

specifications, design, and code

 Traceability can be applied to RP as well

 Numbering requirements components helps with

traceability

 Clients review requirements and express priorities

 Categories: essential, highly desirable, nice, etc.

 Come requirements may be corrected or deleted

 Several iterations of refinement may be required

EECS 448 30 Dr. Douglas Niehaus ยฉ 2009

Rapid Prototyping

 A RP is a hastily built version of the software

exhibiting key interface and/or functionality features

of the target product

 A RP reflects the features the client sees

 Omits the hidden aspects

 RP gives the client a concrete target for reaction

 Developers observe and discuss reactions

 Only bad reaction is no reaction as all reactions

provide information

 Dislike, and the reasons for it, are often more

informative than any other reaction

 Adjustments to RP can be used to foster agreement

between developers and clients

Rapid Prototyping

 RP agreed on by clients and developers is a valuable

resource for writing specifications

 Important aspects of RP

 Built as quickly and cheaply as possible

 Enabling clients and developers to agree as

quickly as possible

 Build for change, as much as possible

 Fourth Generation and Interpreted languages have

been used for RP

 Smalltalk, Prolog, Lisp in past

 HTML, Perl, Visual Basic, Python today

 Sometimes also good for major parts of final

product, particularly those not performance

dependent

Rapid Prototyping

 Concerns about maintainability of interpreted

languages for permanent implementation are not

relevant to RP

 RP particularly popular for user interfaces

 Advantage of Python/GTK and equivalents is that the

RP may be the final implementation

 Perl/QT, Ruby/QT etc

 GUI designers generating code are also used

 Performance sensitive aspects of an application can

be implemented separately and wrapped by

interpreted languages

 SWIG and other tools can do this automatically

 Python wrappers for C/C++ libraries, for example

EECS 448 37 Dr. Douglas Niehaus ยฉ 2009

CASE Tools for Requirements WF

 CASE Tools are popular in many organizations

 Strengths out-weigh weaknesses

 Existing CASE workbenches extended for UML

 System Architect and Software through Pictures

 OO CASE tools

 Rose and Together

 Open source: ArgoUML

EECS 448 38 Dr. Douglas Niehaus ยฉ 2009

Metrics for Requirements WF

 Key feature of requirements WF is how quickly the

requirements team can determine the clients' needs

 Useful metric is requirements volatility

 Keep records of requirements changes

 Analysis can determine rate of convergence

 Or lack of it

 Convergence rate evaluation can be applied to any

method for eliciting requirements

 Another measure is how many requirements change

during later phases

 Initiated by developers: review requirements WF

 Initiated by clients: warn about moving target

problem and further changes held to minimum

Metrics for Requirements WF

 How often RP features and components are used

during testing

 Popularity or difficulty

Challenges of Requirements WF

 Deciding on the essential elements of a good

solution to the real problem is hard

 Requires cooperation of potential users

 May feel threatened by changes resulting from

computerization and the product

 Negotiation can be difficult

 Scaling down what the client wants

 Products cannot do everything

 Compromising among client managers with their

own, possibly competing, sets of concerns

 Gaining access to key domain knowledge can

require access to key client workers

 Commitment of client organization

Challenges of Requirements WF

 Conflicting opinions and agendas among developers

can also require negotiation and compromise

 Flexibility and objectivity are essential qualities for

developers eliciting requirements

 Approach each interview without preconceptions

 Should not make assumptions about requirements

 Being objective about your own opinions is an

excellent exercise, but is also very hard

 Every application project is different and

requirements phase must discover all unique aspects

 Solving the last problem doesn't help

Conclusions

 Discovering requirements is the least defined aspect

of SWE because it is so strongly affected by the

target domain

 Requires communication with clients and sometimes

subtle detective work

 Not always the obvious reasons many people

decide to study computers

 But often the most interesting and along with

analysis and design among the most creative

 Solving new problems is much less well defined and

messier than most class assignments

 Real job of SWE, so get used to it