April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 1 The Software Life Cycle.

Slides:



Advertisements
Similar presentations
Prescriptive Process models
Advertisements

Conquering Complex and Changing Systems Object-Oriented Software Engineering Chapter 12, Software Life Cycle.
Computer Science Department
Software Process Models
Software Engineering CSE470: Process 15 Software Engineering Phases Definition: What? Development: How? Maintenance: Managing change Umbrella Activities:
Using UML, Patterns, and Java Object-Oriented Software Engineering 15. Software Life Cycle.
Software Life Cycle Sources:
1 Chapter 4 - Part 1 Software Processes. 2 Software Processes is: Coherent (logically connected) sets of activities for specifying, designing, implementing,
CSE 470 : Software Engineering The Software Process.
CSC 480 Software Engineering
The software process A software process is a set of activities and associated results which lead to the production of a software product. This may involve.
Modeling the Process and Life Cycle CSCI 411 Advanced Database and Project Management Monday, February 2, 2015.
Using UML, Patterns, and Java Object-Oriented Software Engineering 15. Software Life Cycle.
Chapter 2 – Software Processes
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 17 Slide 1 Rapid software development.
Fall 2007CS 225 Introduction to Software Design Chapter 1.
Software Engineering. How many lines of code? Average CS1004 assignment: 200 lines Average CS4115 project: 5000 lines Corporate e-commerce project: 80,000.
R R R CSE870: Advanced Software Engineering (Cheng): Intro to Software Engineering1 Advanced Software Engineering Dr. Cheng Overview of Software Engineering.
Software Engineering.
Chapter 15: Life Cycle Models
Object-oriented Analysis and Design
Introduction to Software Design Chapter 1. Chapter 1: Introduction to Software Design2 Chapter Objectives To become familiar with the software challenge.
The Software Product Life Cycle. Views of the Software Product Life Cycle  Management  Software engineering  Engineering design  Architectural design.
Problem with Software Requirements are complex The client does not know the functional requirements in advance Requirements may be changing Technology.
CMSC 345, Version 1/03 An Overview of Software Processes Reference: Software Engineering, by Ian Sommerville, 6 th edition, Chapter 3.
Software Life Cycle Model
S/W Project Management Software Process Models. Objectives To understand  Software process and process models, including the main characteristics of.
1 CMPT 275 Software Engineering Software life cycle.
Dillon: CSE470: SE, Process1 Software Engineering Phases l Definition: What? l Development: How? l Maintenance: Managing change l Umbrella Activities:
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
CS 360 Lecture 3.  The software process is a structured set of activities required to develop a software system.  Fundamental Assumption:  Good software.
1 ISA&D7‏/8‏/ ISA&D7‏/8‏/2013 Systems Development Life Cycle Phases and Activities in the SDLC Variations of the SDLC models.
Software Processes lecture 8. Topics covered Software process models Process iteration Process activities The Rational Unified Process Computer-aided.
Introduction to Software Design Chapter 1. Chapter Objectives  To become familiar with the software challenge and the software life cycle  To understand.
Software Life-Cycle Models Somnuk Keretho, Assistant Professor Department of Computer Engineering Faculty of Engineering, Kasetsart University
Object-oriented Analysis and Design Stages in a Software Project Requirements Writing Analysis Design Implementation System Integration and Testing Maintenance.
Rapid software development 1. Topics covered Agile methods Extreme programming Rapid application development Software prototyping 2.
1 Instructor: S. Masoud Sadjadi sadjadi At cs Dot fiu Dot edu Software Engineering and Project Communications.
CEN nd Lecture CEN 5011 Advanced Software Engineering Instructor: Masoud Sadjadi Software Life Cycle.
Review of Software Process Models Review Class 1 Software Process Models CEN 4021 Class 2 – 01/12.
Chapter 2 – Software Processes Lecture 2 1Chapter 2 Software Processes.
Systems Analysis and Design in a Changing World, Fourth Edition
An Introduction to Software Engineering
Software Production ( ) First Semester 2011/2012 Dr. Samer Odeh Hanna (PhD)
Cmpe 589 Spring 2006 Lecture 2. Software Engineering Definition –A strategy for producing high quality software.
Developed by Reneta Barneva, SUNY Fredonia The Process.
Chapter 2 – Software Processes Lecture 1 Chapter 2 Software Processes1.
September 30, 2010COMS W41561 COMS W4156: Advanced Software Engineering Prof. Gail Kaiser
Software Development Life Cycle (SDLC)
Chapter 2 – Software Processes Lecture 1 1Chapter 2 Software Processes.
Using UML, Patterns, and Java Object-Oriented Software Engineering 15. Software Life Cycle (Waterfall)
Modelling the Process and Life Cycle. The Meaning of Process A process: a series of steps involving activities, constrains, and resources that produce.
Software Development Process CS 360 Lecture 3. Software Process The software process is a structured set of activities required to develop a software.
Chapter 2 Software Development Model and 1. Topics covered Software process models Process iteration Process activities The Rational Unified Process Computer-aided.
A framework that describes the activities performed at each stage of a software development project. A life-cycle or a software process is the organisational.
Introduction to Software Engineering 1. Software Engineering Failures – Complexity – Change 2. What is Software Engineering? – Using engineering approaches.
1 Chapter 2 SW Process Models. 2 Objectives  Understand various process models  Understand the pros and cons of each model  Evaluate the applicability.
CS 389 – Software Engineering Lecture 2 – Part 2 Chapter 2 – Software Processes Adapted from: Chap 1. Sommerville 9 th ed. Chap 1. Pressman 6 th ed.
Advanced Software Engineering Dr. Cheng
SNS College of Engineering Coimbatore
Chapter 2 SW Process Models
Life Cycle Models PPT By :Dr. R. Mall.
Level 1 Level 1 – Initial: The software process is characterized as ad hoc and occasionally even chaotic. Few processes are defined, and success depends.
Dr. Samer Odeh Hanna (PhD)
Chapter 2 Software Processes
Chapter 2 – Software Processes
An Overview of Software Processes
CEN 5011 Advanced Software Engineering
15. Software Life Cycle.
Software Engineering Lecture 17.
Presentation transcript:

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 1 The Software Life Cycle

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 2 Inherent Problems with Software Development Requirements are complex The client usually does not know all the functional requirements in advanceThe client usually does not know all the functional requirements in advance Requirements may be changing Technology enablers introduce new possibilities to deal with nonfunctional requirementsTechnology enablers introduce new possibilities to deal with nonfunctional requirements Frequent changes are difficult to manage Identifying milestones and cost estimation is difficultIdentifying milestones and cost estimation is difficult

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 3 Inherent Problems with Software Development There is more than one software system New system must often be backward compatible with existing system (“legacy system”)New system must often be backward compatible with existing system (“legacy system”) Phased development: Need to distinguish between the system under development and already released systemsPhased development: Need to distinguish between the system under development and already released systems

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 4Definitions Software life cycle modeling: Attempt to deal with complexity and change Attempt to deal with complexity and change Software life cycle: Set of activities and their relationships to each other to support the development of a software systemSet of activities and their relationships to each other to support the development of a software system Software development methodology: A collection of techniques for building models - applied across the software life cycleA collection of techniques for building models - applied across the software life cycle

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 5 Software Life Cycle Software construction goes through a progression of states: Conception AdulthoodRetirementChildhood Pre- Development Development Post- Development

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 6 Typical Software Lifecycle Questions Which activities should I select for the software project?Which activities should I select for the software project? What are the dependencies between activities?What are the dependencies between activities?  Does system design depend on analysis? Does analysis depend on design? How should I schedule the activities?How should I schedule the activities?  Should analysis precede design?  Can analysis and design be done in parallel?  Should they be done iteratively?

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 7 Possible Identification of Software Development Activities Requirements Analysis What is the problem? System Design What is the solution? Program Design What are the mechanisms that best implement the solution? Program Implementation How is the solution constructed? Testing Is the problem solved? Delivery Can the customer use the solution? Maintenance Are enhancements needed? Problem Domain Problem Domain Implementation Domain Implementation Domain

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 8 Many models have been proposed to deal with the problems of defining activities and associating them with each other. The waterfall model: First described by Royce in 1970First described by Royce in 1970 There seem to be at least as many versions as there are authorities - perhaps more.There seem to be at least as many versions as there are authorities - perhaps more. Life-Cycle Model: Variations on a Theme

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 9 The Waterfall Model of the Software Life Cycle Project Initialization Process Concept Exploration Process System Allocation Process Requirements Process Design Process Implementation Process Verification & Validation Process Installation Process Operation & Support Process

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 10 Problems with Waterfall Model Managers love waterfall models: Nice milestonesNice milestones No need to look back (linear system)No need to look back (linear system) One activity at a timeOne activity at a time Easy to check progress : 90% coded, 20% testedEasy to check progress : 90% coded, 20% tested Different stakeholders need different abstractions: => V-Model=> V-Model

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 11 Problems with Waterfall Model Software development is iterative: During design, problems with requirements are identified.During design, problems with requirements are identified. During coding, design and requirement problems are found.During coding, design and requirement problems are found. During testing, coding, design, and requirement errors are found.During testing, coding, design, and requirement errors are found. => Spiral Model=> Spiral Model System development is a nonlinear activity: => Issue-Based Model=> Issue-Based Model

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 12 V Model: Distinguishes between Development and Verification Activities Level of Detail Project Time Low High Acceptance Testing Problem with V-Model: Client’s Perception is the same as the Developer’s Perception Client’s Understanding Developer’s Understanding Requirements Elicitation Analysis Design System Testing Object Design Unit Testing Integration Testing

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 13 Problems with V-Model The V-model and its variants do not distinguish temporal and logical dependencies, but fold them into one type of association. In particular, the V model does not model iteration.

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 14 Sawtooth Model Client’s Understanding Developer’s Understanding Requirements Elicitation Implementation System Design Object Design Requirements Analysis Unit Test Prototype Demonstration 2 Client Developer Client Acceptance System Integration & Test Integration & Test Prototype Demonstration 1

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 15 Identify risks.Identify risks. Assign priorities to risks.Assign priorities to risks. Develop a series of prototypes for the identified risks starting with the highest risk.Develop a series of prototypes for the identified risks starting with the highest risk. Use a waterfall model for each prototype development (“cycle”).Use a waterfall model for each prototype development (“cycle”). If a risk has successfully been resolved, evaluate the results of the “cycle” and plan the next round.If a risk has successfully been resolved, evaluate the results of the “cycle” and plan the next round. If a certain risk cannot be resolved, terminate the project immediately.If a certain risk cannot be resolved, terminate the project immediately. Spiral Model (Boehm) Deals with Iteration

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 16 Spiral Model

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 17 Activities (“Rounds”) in Boehm’s Spiral Model Concept of Operations Software Requirements Software Product Design Detailed Design Code Unit Test Integration and Test Acceptance Test Implementation For each cycle go through these steps: Define objectives, alternatives, constraints Evaluate alternative, identify and resolve risks Develop, verify prototype Plan next “cycle”

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 18 Illustrative Prototype: Develop the user interface with a set of storyboardsDevelop the user interface with a set of storyboards Implement them on a napkin or with a user interface builder (Visual C++,....)Implement them on a napkin or with a user interface builder (Visual C++,....) Good for first dialog with clientGood for first dialog with client Functional Prototype: Implement and deliver an operational system with minimum functionalityImplement and deliver an operational system with minimum functionality Then add more functionalityThen add more functionality Order identified by riskOrder identified by risk Types of Prototypes used in the Spiral Model

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 19 The Limitations of the Waterfall and Spiral Models Neither of these models deals well with frequent change: The waterfall model assumes that once you are done with a phase, all issues covered in that phase are closed and cannot be reopened.The waterfall model assumes that once you are done with a phase, all issues covered in that phase are closed and cannot be reopened. The spiral model can deal with change between phases, but once inside a phase, no change is allowed.The spiral model can deal with change between phases, but once inside a phase, no change is allowed. What do you do if change is happening more frequently? (“The only constant is the change”)

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 20 An Alternative: Issue-Based Development A system is described as a collection of issues Issues are either closed or open.Issues are either closed or open. Closed issues have a resolution.Closed issues have a resolution. Closed issues can be reopened (Iteration!)Closed issues can be reopened (Iteration!) The set of closed issues is the basis of the system model.

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 21 Change and Software Life Cycle (PT = Project Time, MTBC = Mean Time Between Changes) Change rarely occurs (MTBC >> PT):  Waterfall Model  All issues in one phase are closed before proceeding to the next phase Change occurs sometimes (MTBC = PT):  Boehm’s Spiral Model  Change occurring during a phase might lead to an iteration of a previous phase or cancellation of the project

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 22 Change and Software Life Cycle “Change is constant” (MTBC << PT):  Issue-Based Development (Concurrent Development Model)  Phases are never finished, they all run in parallel: –Decision when to close an issue is up to management –The set of closed issues form the basis for the system to be developed

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 23 Process Maturity A software development process is mature if the development activities are well defined and if management has some control over the project. Process maturity is described with a set of maturity levels and the associated measurements (metrics) to manage the process. Assumption: With increasing maturity the risk of project failure decreases.

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 24 Capability Maturity Levels 1. Initial Level also called ad hoc or chaoticalso called ad hoc or chaotic 2. Repeatable Level Process depends on individuals ("champions") Process depends on individuals ("champions") 3. Defined Level Process is institutionalized (sanctioned by management) Process is institutionalized (sanctioned by management) 4. Managed Level Activities are measured and provide feedback for resource allocation (process itself does not change)Activities are measured and provide feedback for resource allocation (process itself does not change) 5. Optimizing Level Process allows feedback of information to change process itselfProcess allows feedback of information to change process itself

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 25Summary A Software Life Cycle Model is a representation of the development process (as opposed to the system). Reviewed software life cycles: Waterfall ModelWaterfall Model V-ModelV-Model Sawtooth ModelSawtooth Model Boehm’s Spiral ModelBoehm’s Spiral Model Issue-Based Development Model (Concurrent Development)Issue-Based Development Model (Concurrent Development) The maturity of a development process can be assessed using a process maturity model.

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 26 Design Patterns As software engineers, we commonly have to make decisions about how to create complex objects, how to encapsulate some actions, how to allow for the undoing of certain operations, etc. Instead of developing individual solutions every time, it is useful to apply standard design patterns. The patterns have been used and tested by many other software engineers. Moreover, they are known by many software engineers and well documented in literature so that using them will make it easier for other programmers to understand your code.

Design Patterns It typically takes programmers some time to get proficient with design patterns. Once they get used to these techniques, their productivity increases. There are entire catalogs of design patterns with formal specifications including pattern name, description, etc. We will only have time to look at one common design pattern, the Singleton Pattern, and look at it in a less formal way. April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 27

April 22, 2014CS410 – Software Engineering Lecture #19: The Software Life Cycle 28 The Singleton Design Pattern class Singleton { public: static Singleton* instance(); static Singleton* instance(); void op1(); void op1();protected: Singleton(); Singleton(); Singleton(const Singleton&); Singleton(const Singleton&); Singleton& operator=(const Singleton&); Singleton& operator=(const Singleton&);private: static Singleton* onlyInstance_; static Singleton* onlyInstance_;}; Singleton* Singleton::onlyInstance_ = 0; Singleton* Singleton::instance() { if (onlyInstance_ == 0) if (onlyInstance_ == 0) onlyInstance_ = new Singleton; onlyInstance_ = new Singleton; return onlyInstance_; return onlyInstance_;} Returns pointer to the only Singleton object. Uses lazy evaluation (instance is not created unless explicitly requested). Constructors are private, so the following is impossible: Singleton* s = new Singleton(); Operations should be accessed through instantiating operation: Singleton::instance()->op1(); Pointer to the only instance or 0 if no instance exists. Could easily be modified to allow at most n instances.