Reference Book For Most of The Slides: Fundamentals of Software Engineering, Fourth Edition by Rajib Mall
Reference Book For Most of The Slides: Fundamentals of Software Engineering, Fourth Edition by Rajib Mall
Reference Book For Most of The Slides: Fundamentals of Software Engineering, Fourth Edition by Rajib Mall
Develpoment Life
Cycle Models
Reference Book for Most of the slides: Fundamentals of Software Engineering, Fourth Edition by Rajib Mall, Professor,
Department of Computer Science and Engineering, Indian Inst itut e of Technology Kharagpur, PHI Learning Private Limited, Delhi
1
Inherent Problems
with Software
Development
Requirements are complex
The client does not know the functional
requirements in advance
Requirements may be changing
Technology enablers introduce new
possibilities to deal with nonfunctional
requirements
Frequent changes are difficult to manage
Identifying milestones and cost estimation is
difficult
2
Inherent Problems
with Software
There isDevelopment
more than one software system
New system must be backward compatible with
existing system (“legacy system”)
Phased development: Need to distinguish between
the system under development and already
released systems
Let’s view these problems as the
nonfunctional requirements for a system that
supports software development!
This leads us to software life cycle modeling
3
4
Software Development Life
Cycle (SDLC)
software engineering emphasise
software development through a well-
defined and ordered set of activities.
These activities are graphically
modelled (represented) as well as
textually described and are variously
called as software life cycle model,
software development life cycle (SDLC)
model, and software development
process model.
5
Software Development Life
Cycle (SDLC)
software life cycle has been defined to imply
the different stages (or phases) over which a
software evolves from an initial customer
request for it, to a fully developed software,
and finally to a stage where it is no longer
useful to any user, and then it is discarded.
An SDLC graphically depicts the different
phases through which a software evolves. It is
usually accompanied by a textual description of
the different activities that need to be carried
out during each phase. 6
Software Development Life
Cycle (SDLC)
7
Classical Waterfall Model
Classical waterfall model divides
life cycle into phases:
feasibility study,
requirements analysis and
specification,
design,
coding and unit testing,
integration and system testing,
maintenance.
8
Classical Waterfall Model
Feasibility Study
Req. Analysis
Design
Coding
Testing
Maintenance
9
Relative Effort for Phases
Phases between feasibility
study and testing 60
known as development 50
Relative Effort
phases.
40
Among all life cycle phases 30
maintenance phase 20
consumes maximum
effort. 10
Among development 0
Maintnce
Coding
Req. Sp
Design
Test
phases,
testing phase consumes the
maximum effort.
10
Classical Waterfall Model
(CONT.)
11
Classical Waterfall Model
(CONT.)
12
Classical Waterfall Model
(CONT.)
13
Feasibility Study
Main aim of feasibility study:determine whether
developing the product
financially worthwhile
technically feasible.
First roughly understand what the customer
wants:
different data which would be input to the system,
processing needed on these data,
output data to be produced by the system,
various constraints on the behavior of the system.
14
Activities during Feasibility
Study
Work out an overall understanding
of the problem.
Formulate different solution
strategies.
Examine alternate solution
strategies in terms of:
resources required,
cost of development, and
development time.
15
Activities during Feasibility
Study
Perform a cost/benefit analysis:
to determine which solution is the
best.
you may determine that none
of the solutions is feasible due
to:
high cost,
resource constraints,
technical reasons.
16
Requirements Analysis and
Specification
Aim of this phase:
understand the exact
requirements of the customer,
document them properly.
Consists of two distinct
activities:
requirements gathering and
analysis
requirements specification. 17
Goals of Requirements
Analysis
Collect all related data from the
customer:
analyze the collected data to
clearly understand what the
customer wants,
find out any inconsistencies and
incompleteness in the
requirements,
resolve all inconsistencies and
incompleteness. 18
Requirements Gathering
21
Requirements Analysis (CONT.)
Engineers doing
requirements analysis and
specification:
are designated as analysts.
22
Design
Design phase transforms
requirements specification:
into a form suitable for
implementation in some
programming language.
23
Design
In technical terms:
during design phase, software
architecture is derived from
the SRS document.
Two design approaches:
traditional approach,
object oriented approach.
24
Traditional Design Approach
Consists of two
activities:
Structured analysis
Structured design
25
Structured Analysis
Activity
Identify all the functions to be
performed.
Identify data flow among the
functions.
Decompose each function
recursively into sub-functions.
Identify data flow among the
subfunctions as well.
26
Structured Analysis (CONT.)
Object structure
further refined to obtain the
detailed design.
OOD has several
advantages:
lower development effort,
lower development time,
better maintainability.
30
Implementation
Purpose of implementation
phase (aka coding and unit
testing phase):
translate software design into
source code.
31
Implementation
M1 M2
M3 M4
35
System Testing
Corrective maintenance:
Correct errors which were not discovered
during the product development phases.
Perfective maintenance:
Improve implementation of the system
enhance functionalities of the system.
Adaptive maintenance:
Port software to a new environment,
e.g. to a new computer or to a new operating system.
38
Problems of classic
waterfall model
i. It is difficult to define all requirements at the
beginning of a project
ii. This model is not suitable for accommodating
any change
iii. A working version of the system is not seen
until late in the project’s life
iv. It does not scale up well to large projects.
v. Real projects are rarely sequential.
39
Iterative Enhancement Model
42
Iterative Waterfall Model
(CONT.)
43
Iterative Waterfall Model
(CONT.)
44
Iterative Waterfall Model
(CONT.)
45
Phase containment of
errors
Reason: rework must be carried out not
only to the design but also to code and
test phases.
The principle of detecting errors as close to
its point of introduction as possible:
is known as phase containment of errors.
Iterative waterfall model is by far the most
widely used model.
Almost every other model is derived from the
waterfall model.
46
Iterative Waterfall Model
(CONT.)
47
Limitations of Iterative
waterfall model
Incremental delivery not supported
Phase overlap not supported
Error correction unduly expensive
Limited customer interactions
Heavy weight
No support for risk handling and code reuse
48
Classical Waterfall Model
(CONT.)
49
Classical Waterfall Model
(CONT.)
Metaphor of mathematical
theorem proving:
A mathematician presents a proof
as a single chain of deductions,
even though the proof might have
come from a convoluted set of
partial attempts, blind alleys and
backtracks.
50
Incremental Models
They are effective in the situations
where requirements are defined
precisely and there is no confusion
about the functionality of the final
product.
After every cycle a useable product is
given to the customer.
Popular particularly when we have to
quickly deliver a limited functionality
system.
51
Disadvantages of using
Incremental process
model :
• It requires a good planning designing.
• It is costlier than waterfall model.
• Definition of system should be complete
and clear.
Prototyping Model
Before starting actual
development,
a working prototype of the system
should first be built.
A prototype is a toy implementation
of a system:
limited functional capabilities,
low reliability,
inefficient performance.
53
Reasons for developing a
prototype
Illustrate to the customer:
input data formats, messages, reports,
or interactive dialogs.
Examine technical issues associated
with product development:
Often major design decisions depend
on issues like:
efficiency of a sorting algorithm, etc.
54
Prototyping Model (CONT.)
55
Prototyping Model (CONT.)
Build Prototype
Refine Implement
Requirements
Test
Maintain
58
Steps of Prototype Model
Prototyping Model (CONT.)
59
Prototyping Model (CONT.)
60
Advantage of Prototype
Model
• Reduce the risk of incorrect user
requirement
• Good where requirement are
changing/uncommitted
• Regular visible process aids
management
• Reduce Maintenance cost.
• Errors can be detected much earlier as
the system is made side by side.
Disadvantage of Prototype
Model
An unstable/badly implemented prototype
often becomes the final product.
Require extensive customer collaboration
Costs customer money
Needs committed customer
Difficult to finish if customer withdraw
May be too customer specific, no broad market
Difficult to know how long the project
will last.
• Prototyping tools are expensive.
• Special tools & techniques are required
to build a prototype.
• It is a time-consuming process.
Spiral Model
Proposed by Boehm in 1988.
Each loop of the spiral represents a
phase of the software process:
the innermost loop might be concerned with
system feasibility,
the next loop with system requirements
definition,
the next one with system design, and so on.
There are no fixed phases in this model,
the phases shown in the figure are just
examples.
64
Spiral Model (CONT.)
Customer
Evaluation of Develop Next
Prototype Level of Product
66
Objective Setting (First
Quadrant)
68
Spiral Model (CONT.)
67
Advantages
• Easy to Understand.
• Testing Methods like planning, test
designing happens well before coding.
• This saves a lot of time. Hence a higher
chance of success over the waterfall
model.
• Avoids the downward flow of the
defects.
• Works well for small plans where
requirements are easily understood.
Evolutionary Model
Evolutionary model (iterative or
incremental model):
The system is broken down into several
modules which can be incrementally
implemented and delivered.
First develop the core modules of the
system.
The initial product skeleton is refined
into increasing levels of capability:
by adding new functionalities in successive
versions.
83
Evolutionary Model (CONT.)
C
A AB A
B
85
Evolutionary Model with
Iteration
Many organizations use a
combination of iterative
and incremental
development:
a new release may include
new functionality
existing functionality from the
current release may also have
been modified. 86
Evolutionary Model with
iteration
Several advantages:
Training can start on an earlier release
customer feedback taken into account
Markets can be created:
for functionality that has never been
offered.
Frequent releases allow developers to
fix unanticipated problems quickly.
87
Advantages of
Evolutionary Model
Users get a chance to experiment with a
partially developed system:
much before the full working version is
released,
Helps finding exact user requirements:
much before fully working system is
developed.
Core modules get tested thoroughly:
reduces chances of errors in final product.
88
Disadvantages of
Evolutionary
Model
Often, difficult to subdivide
problems into functional units:
which can be incrementally
implemented and delivered.
evolutionary model is useful for
very large problems,
where it is easier to find modules for
incremental implementation.
89
90
91
Rapid Application
Development (RAD) Model
92
Agile model
11
3
Comparison of Different Life
Cycle Models (CONT.)