Software Engineering COMP 201 1COMP201 - Software Engineering Lecturer: Sebastian Coope Ashton Building, Room G.18 COMP.

Slides:



Advertisements
Similar presentations
Software Processes.
Advertisements

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
1 Software Processes A Software process is a set of activities and associated results which lead to the production of a software product. Activities Common.
Unit 2. Software Lifecycle
Lectures 2 & 3 Software Processes.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 1 Software Processes.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 1 Slide 1 المحاضرة الثانية.
Software Processes Modified by Randy K. Smith
Chap 2. Software Processes
What is software? Computer programs and associated documentation
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.
1 Chapter 2 Software Processes An overview of conventional software process models, Rational Unified Process, and CASE tools.
EE6421/ED5031Software Engineering Slide 1 Section # 2 (Read Sommerville Ch (3 or 4) and Pressman Ch 2) Software Processes.
COMP 474 Software Engineering Professor William L. Honig.
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.
Software Engineering Process
 © Ian Sommerville A software process model is an abstract representation of a process. It presents a description of a process from some particular perspective.
Chapter 2 – Software Processes
ISNE101 Dr. Ken Cosh. Recap  We’ve been talking about Software…  Application vs System Software  Programming Languages  Vs Natural Languages  Syntax,
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
Software Processes Coherent sets of activities for specifying, designing, implementing and testing software systems.
©Ian Sommerville 2000Software Engineering, 6th edition. Chapter 3Slide 1 Software Processes l Coherent sets of activities for specifying, designing, implementing.
Modified from Sommerville’s originalsSoftware Engineering, 7th edition. Chapter 4 Slide 1 Software Process Models.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Process Models.
©Ian Sommerville 2000 Software Engineering, 6th edition Slide 1 Software Processes l Coherent sets of activities for specifying, designing, implementing.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
Chapter 3 Software Processes.
S/W Project Management Software Process Models. Objectives To understand  Software process and process models, including the main characteristics of.
Lecture 2 Software Processes CSC301-Winter 2011 Hesam C. Esfahani
Software Processes Sumber dari : cc.ee.ntu.edu.tw/~farn/courses/SE/ch4.ppt.
Software Processes. Objectives To introduce software process models To describe three generic process models and when they may be used To describe outline.
Software Processes.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
©Ian Sommerville 2000, Mejia-Alvarez 2009 Slide 1 Software Processes l Coherent sets of activities for specifying, designing, implementing and testing.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 1 Slide 1 Software Processes (Chapter 3)
Software Processes lecture 8. Topics covered Software process models Process iteration Process activities The Rational Unified Process Computer-aided.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 3 Slide 1 Software Processes l Coherent sets of activities for specifying, designing,
Lecture 3 Software Engineering Models (Cont.)
1 SWE Introduction to Software Engineering Lecture 4.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
Chapter 2 – Software Processes Lecture 2 1Chapter 2 Software Processes.
An Introduction to Software Engineering
Chapter 2 Software Processes (2/2) Yonsei University 2 nd Semester, 2015 Sanghyun Park.
4. Software Processes Software Engineering. Objectives To introduce software process models To describe three generic process models and when they may.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
Chapter 13: Software Life Cycle Models Omar Meqdadi SE 273 Lecture 13 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
Chapter 2 – Software Processes Lecture 1 Chapter 2 Software Processes1.
CSC 480 Software Engineering Lecture 2 August 26, 2002.
September 30, 2010COMS W41561 COMS W4156: Advanced Software Engineering Prof. Gail Kaiser
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 1 Software Processes.
Chapter 2 – Software Processes Lecture 2 1Chapter 2 Software Processes.
Software Engineering, 8th edition. Chapter 4 1 Courtesy: ©Ian Sommerville 2006 FEB 13 th, 2009 Lecture # 5 Software Processes.
Software Engineering Saeed Akhtar The University of Lahore Lecture 3 Originally shared for: mashhoood.webs.com.
1 Chapter 2 SW Process Models. 2 Objectives  Understand various process models  Understand the pros and cons of each model  Evaluate the applicability.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Software Processes.
1 SYS366 Week 2 - Lecture Visual Modeling and Process.
Laurea Triennale in Informatica – Corso di Ingegneria del Software I – A.A. 2006/2007 Andrea Polini II. Software Life Cycle.
Software Processes (a)
Chapter 2 SW Process Models
Software Processes.
Chapter 2 Software Processes
Chapter 2 – Software Processes
An Overview of Software Processes
CS310 Software Engineering Lecturer Dr.Doaa Sami
Software Processes.
Presentation transcript:

Software Engineering COMP 201 1COMP201 - Software Engineering Lecturer: Sebastian Coope Ashton Building, Room G.18 COMP 201 web-page: Lecture 2 – Software Processes

What is a Process … ? When we provide a service or create a product we always follow a sequence of steps to accomplish a set of tasks You do not usually put up the drywall before the wiring for a house is installed or bake a cake before all the ingredients are mixed together We can think of a series of activities as a process During this lecture we shall see some examples of software development processes that are used to ensure software is developed in a systematic way using tried and tested techniques 2COMP201 - Software Engineering

What is a Process … ? Any process has the following characteristics It prescribes all of the major activities It uses resources and produces intermediate and final products It may include sub-processes and has entry and exit criteria The activities are organized in a sequence Constraints or controls may apply to activities (budget constraints, availability of resources, etc.) 3COMP201 - Software Engineering

Process Building development COMP201 - Software Engineering4 Secure funding Design house Get Planning permission Site survey (re)Draw plans (re)Specify build Architect Plans/ specifications

Software Processes Coherent sets of activities for Specifying, Designing, Implementing and Testing software systems When the process involves the building of some product we refer to the process as a life cycle Software development process – software life cycle 5COMP201 - Software Engineering

Processes and software Software (unlike buildings/bridges etc.) Can be changed at anytime Is often required to change often after construction Benefits Software can be improved almost without limit Leading to problems Software often gets faults as it evolves Software cost is hard to manage Problems with user’s experience and expectations COMP201 - Software Engineering6

The Software Process The Software Process is a structured set of activities required to develop a software system consisting of Specification Design Validation Evolution A software process model is an abstract representation of a process It presents a description of a process from some particular perspective 7COMP201 - Software Engineering

Generic Software Process Models The Waterfall Model (classic engineering, example bridge building) Separate and distinct phases of specification and development Evolutionary Development (more like product engineering) Specification and development are interleaved Formal Systems Development (example - ASML) A mathematical system model is formally transformed to an implementation Reuse-Based Development The system is assembled from existing components 8COMP201 - Software Engineering

Waterfall Model 9COMP201 - Software Engineering The drawback of the waterfall model is the difficulty of accommodating change after the process is underway

Waterfall Model Problems Inflexible partitioning of the project into distinct stages This makes it difficult to respond to changing customer requirements Therefore, this model is only appropriate when the (final) requirements are well-understood (rare in software) Waterfall model describes a process of stepwise refinement Based on hardware engineering models Widely used in military and aerospace industries 10COMP201 - Software Engineering

Reality check! Practically no one in industry follows the waterfall method as shown here to produce software Why bother, then? Each stage is an important step in software development It’s easy to remember The sequence is important Spec. before Design Design before coding etc. Many industry practises could do with improvement! COMP201 - Software Engineering11

Why Not a Waterfall But software is different from hardware : No fabrication step Program code is another design level Hence, no “commit” step – software can always be changed…! No body of experience for design analysis (yet) Most analysis (testing) is done on program code Hence, problems are often not detected until late in the process Waterfall model takes a static view of requirements It ignores changing needs Lack of user involvement once specification is written Unrealistic separation of specification from the design Doesn’t accommodate prototyping, reuse, etc. 12COMP201 - Software Engineering

Evolutionary Development Rather than using the waterfall model we may use evolutionary development which is based upon the idea of developing an initial implementation, exposing it to the user and refining it based upon their response. Exploratory development - Objective is to work with customers and to evolve a final system from an initial outline specification. - Should start with well-understood requirements. - The system evolves by adding new features as they are proposed by customer. 13COMP201 - Software Engineering

Evolutionary Development Throw-away prototyping Objective is to understand the system requirements. Should start with poorly understood requirements Develop “quick and dirty” system quickly; Expose to user comment; Refine; Until an adequate system is developed. Particularly suitable where: - detailed requirements not possible; - powerful development tools (e.g. GUI) available 14COMP201 - Software Engineering

Evolutionary Development 15COMP201 - Software Engineering

Evolutionary Development Problems Lack of process visibility Systems are sometimes poorly structured Special skills (e.g. in languages prototyping) may be required Applicability All types of system but rare in safety critical 16COMP201 - Software Engineering

Formal Systems Development Based on the transformation of a mathematical specification through different representations to an executable program Transformations are ‘correctness-preserving’ so it is straightforward to show that the program conforms to its specification Embodied in the ‘Cleanroom’ approach (which was originally developed by IBM) to software development 17COMP201 - Software Engineering

Formal Systems Development 18COMP201 - Software Engineering

Formal Transformations 19COMP201 - Software Engineering

Example code (in Z) COMP201 - Software Engineering20

Formal Systems Development Problems Need for specialised skills and training to apply the technique (Higher initial cost) Difficult to formally specify some aspects of the system such as the user interface Can be more time consuming than other approaches (increased time to market) Many stake holders cannot understand the specification Applicability Critical systems especially those where a safety or security case must be made before the system is put into operation 21COMP201 - Software Engineering

Reuse-Oriented Development Based on systematic reuse where systems are integrated from existing components or COTS (Commercial-off-the- shelf) systems Process stages Component analysis Requirements modification System design with reuse Development and integration 22COMP201 - Software Engineering

Process Iteration Modern development processes take iteration as fundamental, and try to provide ways of managing, rather than ignoring, the risk System requirements ALWAYS evolve in the course of a project so process iteration where earlier stages are reworked is always part of the process for large systems Iteration can be applied to any of the generic process models There are two (related) approaches: Incremental development Spiral development 23COMP201 - Software Engineering

Incremental Development (example Scrum) Rather than deliver the system as a single delivery, the development and delivery is broken down into increments with each increment delivering part of the required functionality User requirements are prioritised and the highest priority requirements are included in early increments Once the development of an increment is started, the requirements are frozen though requirements for later increments can continue to evolve 24COMP201 - Software Engineering

Incremental Development Advantages Customer value can be delivered with each increment so system functionality is available earlier Early increments act as a prototype to help elicit requirements for later increments Lower risk of overall project failure The highest priority system services tend to receive the most testing 25COMP201 - Software Engineering

Spiral Development (Barry Boehm 1986) Process is represented as a spiral rather than as a sequence of activities with backtracking Each loop in the spiral represents a phase in the process. No fixed phases such as specification or design - loops in the spiral are chosen depending upon what is required Risks are explicitly assessed and resolved throughout the process 26COMP201 - Software Engineering

Spiral Model of the Software Process 27COMP201 - Software Engineering

Spiral Model Sectors Objective setting Specific objectives for the phase are identified Risk assessment and reduction Risks are assessed and activities put in place to reduce the key risks Development and validation A development model for the system is chosen which can be any of the generic models Planning The project is reviewed and the next phase of the spiral is planned 28COMP201 - Software Engineering

In Reality Most software processes involve Prototyping Iterative building Why It reduces risk of making the wrong product It allows the software to undergo more testing It produces working product as we go along, so less chance of inventory loss COMP201 - Software Engineering29

Lecture Key Points Software processes are the activities involved in producing and evolving a software system. They are represented in a software process model General activities are specification, design and implementation, validation and evolution Generic process models describe the organisation of software processes Iterative process models describe the software process as a cycle of activities 30COMP201 - Software Engineering