Lecture 05
Lecture 05
1
30/10/2014
2
30/10/2014
Requirements elicitation
3
30/10/2014
Requirements elicitation
• Stages include:
• Requirements discovery,
• Requirements classification and organization,
• Requirements prioritization and negotiation,
• Requirements specification.
5
30/10/2014
• The requirements change during the analysis process. New stakeholders may
emerge and the business environment may change.
6
30/10/2014
7
30/10/2014
Process activities
• Requirements discovery
• Interacting with stakeholders to discover their requirements. Domain
requirements are also discovered at this stage.
• Requirements classification and organisation
• Groups related requirements and organises them into coherent clusters.
• Prioritisation and negotiation
• Prioritising requirements and resolving requirements conflicts.
• Requirements specification
• Requirements are documented and input into the next round of the spiral.
8
30/10/2014
Requirements discovery
9
30/10/2014
Interviewing
• Types of interview
• Closed interviews based on pre -determined list of questions
• Open interviews where various issues are explored with stakeholders.
• Effective interviewing
• Be open-minded, avoid pre -conceived ideas about the requirements and are willing to
listen to stakeholders.
• Prompt the interviewee to get discussions going using a springboard question, a
requirements proposal, or by working together on a prototype system.
10
30/10/2014
Requirements specification
11
30/10/2014
Requirements specification
• System requirements are more detailed requirements and may include more
technical information.
12
Ways of writing a system requirements 30/10/2014
specification
Notation Description
Natural language The requirements are written using numbered sentences in natural language.
Each sentence should express one requirement.
Structured natural The requirements are written in natural language on a standard form or
language template. Each field provides information about an aspect of the
requirement.
Design description This approach uses a language like a programming language, but with more
languages abstract features to specify the requirements by defining an operational
model of the system. This approach is now rarely used although it can be
useful for interface specifications.
Graphical notations Graphical models, supplemented by text annotations, are used to define the
functional requirements for the system; UML use case and sequence
diagrams are commonly used.
Mathematical These notations are based on mathematical concepts such as finite-state
specifications machines or sets. Although these unambiguous specifications can reduce
the ambiguity in a requirements document, most customers don’t understand
a formal specification. They cannot check that it represents what they want
and are reluctant to accept it as a system contract
13
30/10/2014
• In principle, requirements should state what the system should do and the
design should describe how it does this.
14
30/10/2014
• Lack of clarity
• Precision is difficult without making the document difficult to read.
• Requirements confusion
• Functional and non-functional requirements tend to be mixed -up.
• Requirements amalgamation
• Several different requirements may be expressed together.
17
Example requirements for the insulin pump 30/10/2014
software system
• 3.2 The system shall measure the blood sugar and deliver insulin, if
required, every 10 minutes. (Changes in blood sugar are relatively slow so
more frequent measurement is unnecessary; less frequent measurement
could lead to unnecessarily high sugar levels.)
• 3.6 The system shall run a self-test routine every minute with the conditions
to be tested and the associated actions defined in Table 1. (A self-test
routine can discover hardware and software problems and alert the user to
the fact the normal operation may be impossible.)
18
30/10/2014
Structured specifications
Form-based specifications
• Information about the information needed for the computation and other
entities used.
20
30/10/2014
21
30/10/2014
22
30/10/2014
Tabular specification
pump
Condition Action
24
30/10/2014
Use cases
• Use cases identify the actors in an interaction and which describe the
interaction itself.
• A set of use cases should describe all possible interactions with the system.
• UML sequence diagrams may be used to add detail to use -cases by showing
the sequence of event processing in the system.
25
30/10/2014
26
30/10/2014
27
30/10/2014
Chapter 4 Requirements 28
Engineering
30/10/2014
document
Chapter Description
Preface This should define the expected readership of the document and describe
its version history, including a rationale for the creation of a new version
and a summary of the changes made in each version.
Introduction This should describe the need for the system. It should briefly describe the
system’s functions and explain how it will work with other systems. It
should also describe how the system fits into the overall business or
strategic objectives of the organization commissioning the software.
Glossary This should define the technical terms used in the document. You should
not make assumptions about the experience or expertise of the reader.
User requirements Here, you describe the services provided for the user. The nonfunctional
definition system requirements should also be described in this section. This
description may use natural language, diagrams, or other notations that are
understandable to customers. Product and process standards that must be
followed should be specified.
System architecture This chapter should present a high-level overview of the anticipated system
architecture, showing the distribution of functions across system modules.
Architectural components that are reused should be highlighted.
30
30/10/2014
System evolution This should describe the fundamental assumptions on which the system is based,
and any anticipated changes due to hardware evolution, changing user needs,
and so on. This section is useful for system designers as it may help them avoid
design decisions that would constrain likely future changes to the system.
Appendices These should provide detailed, specific information that is related to the
application being developed; for example, hardware and database descriptions.
Hardware requirements define the minimal and optimal configurations for the
system. Database requirements define the logical organization of the data used
by the system and the relationships between data.
Index Several indexes to the document may be included. As well as a normal alphabetic
index, there may be an index of diagrams, an index of functions, and so on.
31
30/10/2014
Requirements validation
32
30/10/2014
Requirements validation
33
30/10/2014
Requirements checking
• Validity. Does the system provide the functions which best support
the customer ’s needs?
• Consistency. Are there any requirements conflicts?
• Completeness. Are all functions required by the customer included?
• Realism. Can the requirements be implemented given available
budget and technology
• Verifiability. Can the requirements be checked?
34
30/10/2014
• Requirements reviews
• Systematic manual analysis of the requirements.
• Prototyping
• Using an executable model of the system to check requirements
• Test-case generation
• Developing tests for requirements to check testability.
35
30/10/2014
Requirements reviews
36
30/10/2014
Review checks
• Verifiability
• Is the requirement realistically testable?
• Comprehensibility
• Is the requirement properly understood?
• Traceability
• Is the origin of the requirement clearly stated?
• Adaptability
• Can the requirement be changed without a large impact on other requirements?
37
30/10/2014
Requirements change
38
30/10/2014
Changing requirements
• The business and technical environment of the system always changes after installation.
• N ew h a rdware m ay b e i nt ro duce d , i t m ay b e n e c e s s ar y to i nte r fac e t h e syste m wi t h o t h e r syste ms ,
b u s i ne s s p r i o ri ti e s m ay c h a n ge ( wi t h co n s e q ue nt c h a nge s i n t h e syste m s u p p or t re q u i re d ), a n d n ew
l e g i s l ati on a n d re g u l at ions m ay b e i nt roduc e d t h at t h e syste m m u st n e c e s s a ri ly a b i d e by.
• The people who pay for a system and the users of that system are rarely the same people.
• Syste m c u stome rs i m p o s e re q u i re m ent s b e ca us e o f o rgani zati onal a n d b u d getar y co n st rai nts. T h e s e
m ay co nf l i c t wi t h e n d - u s e r re q u i re me nts a n d , af te r d e l i ve r y, n ew fe at u re s m ay h ave to b e a d d e d fo r
u s e r s u p p or t i f t h e syste m i s to m e et i t s go al s.
39
30/10/2014
Changing requirements
Requirements evolution
41
30/10/2014
Requirements evolution
42
30/10/2014
Requirements management
43
30/10/2014
Requirements management
44
30/10/2014
45
30/10/2014
46
30/10/2014
47