2
2
2
UNIT I – Hour II
FUNDAMENTALS OF SE AND
REQUIREMENT ENGINEERING
Topic: SDLC
1
Software Lifecycle Models
A software lifecycle model is a standardised
format for
• planning
• organising, and
• running
a new development project.
Hundreds of different kinds of models are
known and used.
money staff
Project constraints
Computing
resources time
• Management,
• Customers
• Subcontractors
• Suppliers
• Investors
• Banks
Project Visibility
Unlike other engineers
(e.g. civil, electronic, chemical … etc.)
software engineers do not produce anything
physical.
Definition.
A (software/system) lifecycle model is a
description of the sequence of activities
carried out in an SE project, and the relative
order of these activities.
It provides a fixed generic framework that
can be tailored to a specific project.
Project specific parameters will include:
• Size, (person-years)
• Budget,
• Duration.
project plan =
lifecycle model + project parameters
There are hundreds of different lifecycle models
to choose from, e.g:
• waterfall,
• V Shaped
• code-and-fix
• spiral
• rapid prototyping
• unified process (UP)
• agile methods, extreme programming (XP)
• COTS …
but many are minor variations on a smaller
number of basic models.
By changing the lifecycle model, we can
improve and/or tradeoff:
”Swimming
Detailed design & Coding Detailed
upstream”
Design
& Code
Testing
The Waterfall
Lifecycle Workflow
Delivery
Time
Waterfall Strengths
• Easy to understand, easy to use
• Provides structure to inexperienced staff
• Milestones are well understood
• Sets requirements stability
• Good for management control (plan, staff, track)
• Works well when quality is more important than cost
or schedule
Waterfall Deficiencies
• All requirements must be known upfront
• Deliverables created for each phase are considered
frozen – inhibits flexibility
• Can give a false impression of progress
• Does not reflect problem-solving nature of software
development – iterations of phases
• Integration is one big bang at the end
• Little opportunity for customer to preview the
system (until it may be too late)
When to use the Waterfall Model
• Requirements are very well known
• Product definition is stable
• Technology is understood
• New version of an existing product
• Porting an existing product to a new platform.
V-Shaped SDLC Model
• A variant of the Waterfall
that emphasizes the
verification and validation
of the product.
• Testing of the product is
planned in parallel with a
corresponding phase of
development
V-Shaped Steps
• Project and Requirements Planning – • Production, operation and
allocate resources maintenance – provide for
enhancement and corrections
• Product Requirements and • System and acceptance testing –
Specification Analysis – complete check the entire software system in
specification of the software system its environment
Prototypes Operational
Review & Start P1 P2 P3 Prototype
commitment Requirements Concept
Design, Detailed design
plan Of Operation Validation
Development & Verification
plan Requirements
validation Coding
Integration &
Test plan Unit & Integration
Testing
End Acceptance Develop & verify
Plan next phase
Testing next-level product
Each cycle follows a waterfall model by:
1. Determining objectives
2. Specifying constraints
3. Generating alternatives
4. Identifying risks
5. Resolving risks
6. Developing next-level product
7. Planning next cycle
Advantages
1. Realism: the model accurately reflects the
iterative nature of software development on
projects with unclear requirements
2. Flexible: incoporates the advantages of the
waterfal and rapid prototyping methods
3. Comprehensive model decreases risk
4. Good project visibility.
Disadvantages
• Needs technical expertise in risk analysis to
really work
• Model is poorly understood by non-technical
management, hence not so widely used
• Complicated model, needs competent
professional management. High administrative
overhead.
Rapid Prototyping
Iterate
Quick Design
Build Prototype
Customer Evaluation of
Prototype
Transition Construction
Environment * * releases
Workflow Cycle
Requirements
Inception
4
Design
Phase Elaboration
Implementation
*
Construction
Assessment Iteration
Transition
Deployment *
Artifact
UML class diagram!
Use Case Model
specified by
realised by
Analysis Model
deployed by implemented by
Deployment Model
Implementation Model
All models are interdepedent
but this only shown for use Test Model
case model
COTS
• COTS =
Commercial Off-The-Shelf software
• Engineer together a solution from existing
commercial software packages using minimal
software ”glue”.
• E.g. using databases, spread sheets, word
proccessors, graphics software, web browsers,
etc.
Advantages
• Fast, cheap solution
• May give all the basic functionality
• Well defined project, easy to run
Disadvantages
• Limited functionality
• Licensing problems, freeware, shareware,
etc.
• License fees, maintainance fees, upgrade
compatibility problems
When to use
Structured Evolutionary Prototyping
• Requirements are unstable or have to be clarified
• As the requirements clarification stage of a waterfall
model
• Develop user interfaces
• Short-lived demonstrations
• New, original development
• With the analysis and design portions of object-
oriented development.
Rapid Application Model (RAD)
• Requirements planning phase (a workshop utilizing
structured discussion of business problems)
• User description phase – automated tools capture
information from users
• Construction phase – productivity tools, such as code
generators, screen generators, etc. inside a time-box.
(“Do until done”)
• Cutover phase -- installation of the system, user
acceptance testing and user training
RAD Strengths
• Reduced cycle time and improved productivity with
fewer people means lower costs
• Time-box approach mitigates cost and schedule risk
• Customer involved throughout the complete cycle
minimizes risk of not achieving customer satisfaction
and business needs
• Focus moves from documentation to code
(WYSIWYG).
• Uses modeling concepts to capture information
about business, data, and processes.
RAD Weaknesses
• Accelerated development process must give quick
responses to the user
• Risk of never achieving closure
• Hard to use with legacy systems
• Requires a system that can be modularized
• Developers and customers must be committed to
rapid-fire activities in an abbreviated time frame.
When to use RAD
• Reasonably well-known requirements
• User involved throughout the life cycle
• Project can be time-boxed
• Functionality delivered in increments
• High performance not required
• Low technical risks
• System can be modularized
Answer the following questions
For each of the following documents, indicate in which phase(s) of the software life
cycle it is produced:
• final user manual,
• architectural design,
• SQA plan,
• module specification,
• source code,
• statement of work,
• test plan,
• preliminary user manual,
• detailed design,
• cost estimate,
• project plan,
• test report,
• documentation.
63
Answer !!!
Implementation phase
Design phase
Project planning phase
Design phase
Implementation phase
Feasibility phase
Requirements phase
Requirements phase
Design phase
Project planning phase
Project planning phase
Testing phase
Implementation phase
64
• Suppose that you have to build a product to
determine the inverse of 3.546784 to four
decimal places. Once the product has been
implemented and tested, it will be thrown
away. Which life-cycle model would you use?
Give reasons for your answer.
65