Software Engineering B.Tech IT/II Sem-II
Software Engineering B.Tech IT/II Sem-II
UNIT 3 SYLLABUS
Requirements engineering process :
Feasibility studies, Requirements elicitation and
analysis, Requirements validation,
Requirements management.
System models : Context Models, Behavioral
models, Data models, Object models, structured
methods.
S.No
Topic
INDEX
Unit-3 PPTS
Lecture No
PPTSlides
Requirement Engineering
Process -Feasibility Studies
Requirements Elicitation &
analysis
L1
Requirement Validation
L2
20
Requirements Management
L3
22
L4
29
Behavioral Models
L5
32
Data Models
L6
36
L7
39
Requirements
elicitation and
analysis
Requirements
specification
Requirements
validation
Feasibility
report
System
models
User and system
requirements
Requirements
document
Requirements engineering
FEASIBILITY STUDIES
Starting point of the requirements engineering process
Input: Set of preliminary business requirements, an
outine description of the system and how the system is
intended to support business processes
Output: Feasibility report that recommends whether or
not it is worth carrying out further
Feasibility report answers a number of questions:
1.Does the system contribute to the overall objective
2.Can the system be implemented using the current
technology and within given cost and schedule
2.Can the system be integrated with other system which
are already in place.
8
REQUIREMENTS ELICITATION
ANALYSIS
Involves a number of people in an organization
Stakeholder definition
-- Refers to any person or group who will be affected by
the system
directly or indirectly i.e. End
users,Engineers,business managers, domain experts.
Reasons why eliciting is difficult
1.Stakeholder often dont know wht they want from the
computer system.
2.Stakeholder expression of requirements in natural
language is sometimes difficult to understand.
3.Different stakeholders express requirements differently
4.Influences of political factors
Change in requirements due to dynamic environments.
9
REQUIREMENTS ELICITATION
PROCESS
Proces activities
1.Requirement Discovery
11
REQUIEMENTS DICOVERY
TECHNIQUES
1. View points
--Based on the viewpoints expressed by the stake holder
--Recognizes multiple perspectives and provides a framework for
discovering conflicts in the requirements proposed by different
stakeholders
Three Generic types of viewpoints
1.Interactor viewpoint
--Represents people or other system that interact directly with the
system
2.Indirect viewpoint
--Stakeholders who influence the requirements, but dont use the
system
3.Domain viewpoint
--Requirements domain characteristics and constraints that influence
the requirements.
12
13
--Scenario includes:
LIBSYS scenario
Initial assumption: The user has logged on to the LIBSYS system
and has located the journal containing the copy of the article.
Normal: The user selects the article to be copied. He or she is then
prompted by the system to either provide subscriber information for
the journal or to indicate how they will pay for the article. Alternative
payment methods are by credit card or by quoting an organisational
account number.
The user is then asked to fill in a copyright form that maintains details
of the transaction and they then submit this to the LIBSYS system.
The copyright form is checked and, if OK, the PDF version of the
article is downloaded to the LIBSYS working area on the users
computer and the user is informed that it is available. The user is
asked to select a printer and a copy of the article is printed
15
LIBSYS scenario
What can go wrong: The user may fail to fill in the copyright form
correctly. In this case, the form should be re-presented to the user
for correction. If the resubmitted form is still incorrect then the users
request for the article is rejected.
The payment may be rejected by the system. The users request for
the article is rejected.
The article download may fail. Retry until successful or the user
terminates the session..
Other activities: Simultaneous downloads of other articles.
System state on completion: User is logged on. The downloaded
article has been deleted from LIBSYS workspace if it has been
flagged as print-only.
16
Article printing
18
Library
User
Article printing
User administration
Supplier
Library
Staf
Catalogue services
19
REQUIREMENTS VALIDATION
Concerned with showing that the requirements define the system that the
customer wants.
Important because errors in requirements can lead to extensive rework cost
Validation checks
1.Validity checks
--Verification that the system performs the intended function by the user
2.Consistency check
20
VALIDATION TECHNIQUES
1.REQUIREMENTS REVIEWS
--Reviewers check the following:
(b) Comprehensibility
(c) Traceability
(d) Adaptability
2.PROTOTYPING
3.TEST-CASE GENERATION
21
Requirements management
Requirements are likely to change for large software
systems and as such requirements management process
is required to handle changes.
Reasons for requirements changes
(a) Diverse Users community where users have different
requirements and priorities
(b) System customers and end users are different
(c) Change in the business and technical environment
after installation
Two classes of requirements
(a) Enduring requirements: Relatively stable requirements
(b) Volatile requirements: Likely to change during system
development process or during operation
22
Requirements evolution
Initial
understanding
of problem
Initial
requirements
Changed
understanding
of problem
Changed
requirements
Time
23
24
Traceability
25
A traceability matrix
26
27
Change management
Identified
problem Problem analysis and
change specification
Change analysis
and costing
Change
implementation
Revised
requirements
28
SYSTEM MODELS
Used in analysis process to develop understanding of
the existing system or new system.
Exclude details
An abstraction of the system
Types of system models
1.Context models
2. Behavioural models
3.Data models
4.Object models
5.Structured models
29
CONTEXT MODELS
Account
database
Auto-teller
system
Branch
counter
system
Usage
database
Maintenance
system
31
Behavioral models
32
Blood
Blood
parameters
Blood sugar
sensor
Blood sugar
analysis
Blood sugar
level
Insulin
requirement
computa
tion
Insulin
Pump contr
ol
commands
Insulin
pump
Insulin
delivery
controller
Insulin
requirement
33
34
Full power
do: set power
= 600
Timer
Waiting
do: display
time
Half
power
Number
Full
power
Half
power
Set time
Operation
do: operate
oven
Door
closed
Timer
Door
open
Half power
do: set power
= 300
Enabled
Door
closed
Cancel
Start
do: display
'Ready'
Door
open
Waiting
do: display
time
Disabled
do: display
'Waiting'
35
DATA MODELS
Used to describe the logical structure of data
processed by the system.
An entity-relation-attribute model sets out the
entities in the system, the relationships between
these entities and the entity attributes
Widely used in database design. Can readily be
implemented using relational databases.
No specific notation provided in the UML but
objects and associations can be used.
36
Article
Article
title
title
authors
authors
pdffile
pdffile
fee
fee
1
delivers
delivers
n
n
Order
Order
ordernumber
ordernumber
totalpayment
totalpayment
date
date
taxstatus
taxstatus
n
n
places
1 places
1
Buyer
Buyer
name
name
address
address
email
email
billinginfo
billinginfo
Source
Source
title
m
title
m
n publisher
publisher
issue
feepayableto
1 date
issue
feepayableto
1 date
pages
pages
1
1
in
1
in
1
1
1
Country
Copyright
Country
Copyright 1
Agency
1
Agency
1 inin 1 copyrightform
name
copyrightform
taxrate
name
haslinks
address
taxrate
haslinks
address
publishedin
publishedin n
37
38
OBJECT MODELS
OBJECT MODELS
INHERITANCE MODELS
A type of object oriented model which involves in object
classes attributes
Arranges classes into an inheritance hierarchy with the
most general object class at the top of hierarchy
Specialized objects inherit their attributes and services
UML notation
-- Inheritance is shown upward rather than downward
--Single Inheritance: Every object class inherits its
attributes and operations from a single parent class
--Multiple Inheritance: A class of several of several
parents.
40
Hierarchy of class
Library item
Catalogue number
Acquisition da
te
Cost
Type
Status
Number ofcopies
Acquir
e ()
Catalogue ()
Dispose ()
Issue ()
Return ()
Published item
Title
Publisher
Book
Author
Edition
Publication date
ISBN
Magazine
Year
Issue
Recorded item
Title
Medium
Film
Director
Date of release
Distrib
utor
Computer
program
Version
Platform
41
OBJECT MODELS
OBJECT AGGREGATION
-- Some objects are grouping of other objects
-- An aggregate of a set of other objects
-- The classes representing these objects may be
modeled using an object aggregation model
-- A diamond shape on the source of the link
represents the composition
OBJECT-BEHAVIORAL MODEL
-- Shows the operations provided by the objects
-- Sequence diagram of UML can be used for
behavioral modeling
42
Object aggregation
Study pack
Course title
Number
Year
Instructor
OHP slides
Assignment
Credits
Exercises
#Problems
Description
Slides
Lecture
notes
Text
Videota
pe
Tape ids.
Solutions
Text
Diagrams
43
:Library Item
Lib1:
NetServer
:Library User
Lookup
Display
Issue
Issue licence
Accept licence
Compress
Deliver
44