Download presentation
Presentation is loading. Please wait.
Published byAubrie Golden Modified over 9 years ago
1
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 1 Software Processes
2
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 2 The software process l Software process: A structured set of activities required to develop a software system l Fundamental activities which are common to all software activities: Specification; Design; Validation; Evolution. l A software process model is an abstract representation of a process. l It presents a description of a process from some particular perspective -> Each process model provides only partial information about that process.
3
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 3 Generic software process models l The waterfall model Seperates process phases such as requirements specifications, software design, implementation and testing. l Evolutionary development Specification, development and validation are interleaved. An initial system is rapidly developed from abstract specifications. Then, refined with customer input. l Component-based software engineering Based on the existence of a significant number of reusable components. Development process focuses on integrating these components into a system rather than developing them from scrach. l These three process models are widely used in current software engineering practice. l There are many variants of these models. l They are often used together, especially for large systems development.
4
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 4 Waterfall model
5
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 5 Waterfall model l The result of each phase is one or more documents that are approved. l The following phase should not start until the previous phase has finished. l The main drawback of the waterfall model is the difficulty of accommodating change after the process is underway. One phase has to be complete before moving onto the next phase. Commitments must be made at an early stage in the process, which makes it difficult to respond to changing requirements.
6
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 6 Waterfall model problems l Inflexible partitioning of the project into distinct stages makes it difficult to respond to changing customer requirements. l Therefore, this model is only appropriate when the requirements are well- understood and changes will be fairly limited during the design process. l Few business systems have stable requirements. l The waterfall model is mostly used for large systems engineering projects where a system is developed at several sites.
7
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 7 Evolutionary development l Evolutionary development: Developing an initial implementation, exposing this to user comment and refining it through many versions until an adequate system has been developed. Two fundamental types of evolutionary development: l 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 and add new features as proposed by the customer. l Throw-away prototyping Objective is to understand the system requirements. Should start with poorly understood requirements to clarify what is really needed.
8
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 8 Evolutionary development From an engineering and management perspective, the evolutionary approach has two problems: l Problems Lack of process visibility; Systems are often poorly structured; Special skills (e.g. in languages for rapid prototyping) may be required. l Applicability For small or medium-size interactive systems; For parts of large systems (e.g. the user interface); For short-lifetime systems.
9
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 9 Component-based software engineering l Based on systematic reuse where systems are integrated from existing components or COTS (Commercial-off-the-shelf) systems. l While the initial requirements specification stage and the testing stage are comparable with other processes, the intermediate stages are different. l Process stages Component analysis; Requirements modification; System design with reuse; Development and integration. l This approach is becoming increasingly used as component standards have emerged.
10
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 10 Reuse-oriented development
11
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 11 Process iteration l 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. l Iteration can be applied to any of the generic process models. l Two process models: Incremental delivery: Customers identify the services to be provided by the system. They identify which of the systems are most important and least important to them. Each increment provides a sub-set of the system functionality. Spiral development: Rather than represent the software process as a sequence of activities with some backtracking from one activity to another, the process is represented as a spiral.
12
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 12 Process activities l Software specification l Software design and implementation l Software validation l Software evolution l in waterfall model -> activities are organised in sequence. l in evolutionary model -> activities are interleaved. l No right or wrong way to organise these activities!
13
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 13 Software specification l Software specification or requirements engineering: The process of: Understanding and defining what services are required from the system Identifying the constraints on the system’s development and operation. l This process leads to the production of a requirements document that is a specification for the system. l There are four main phases of requirements engineering process (next figure): Feasibility study; Requirements elicitation and analysis; Requirements specification; Requirements validation.
14
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 14 The requirements engineering process
15
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 15 Software design and implementation l Software design: Description of the structure of the software to be implemented, the data which is part of the system, the interfaces between system components and sometimes algorithm used. l Software implementation: Translation of this structure into an executable program; l The activities of design and implementation are closely related and may be inter-leaved.
16
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 16 Design process activities The specific design processes are given as (next figure): l Architectural design l Abstract specification l Interface design l Component design l Data structure design l Algorithm design
17
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 17 The software design process
18
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 18 Structured methods l A contrasting approach, structured methods for design: Producing graphical models of the systems. In many cases, this structural design automatically generates code from these models (ex: Unified Modeling Language (UML) ). l A structured method includes a design process model, notations to represent the design, report formats, rules and design guidelines. l They may support some or all of the following models of a system: Object model; Sequence model; State transition model; Structural model; Data-flow model.
19
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 19 Programming and debugging l Programming is a personal activity and there is no general process that is usually followed. l Programming: Translating a design into a program l Debugging: Removing errors from that program. l Debugging != Testing: Testing establishes the existence of defects. Debugging is concerned with locating and correcting these defects. l Programmers carry out some program testing to discover faults in the program and remove these faults in the debugging process.
20
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 20 The debugging process
21
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 21 Software validation l Verification and validation (V & V) is intended to show that a system conforms to its specification and meets the requirements of the system customer. l Involves checking and review processes and system testing (We will see the in detail further). l System testing involves executing the system with test cases that are derived from the specification of the real data to be processed by the system.
22
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 22 The testing process
23
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 23 Testing stages l Component or unit testing Individual components are tested independently; Components may be functions or objects or coherent groupings of these entities. l System testing Testing of the system as a whole. Testing of emergent properties is particularly important. l Acceptance testing Testing with customer data to check that the system meets the customer’s needs.
24
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 24 Software evolution l Software is inherently flexible and can change. l As requirements change through changing business circumstances, the software that supports the business must also evolve and change.
25
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 25 System evolution
26
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 26 The Rational Unified Process l The RUP: An example of a modern process model derived from the work on the UML and associated process. l It is a good example of a hybrid process model. l It brings together elements from all the generic process models, it supports iteration and it illustrates good practice in specification and design. l Normally described from 3 perspectives: A dynamic perspective that shows phases over time; A static perspective that shows process activities; A practice perspective that suggests good practice.
27
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 27 RUP phase model
28
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 28 RUP phases l Inception Establish the business case for the system. l Elaboration Develop an understanding of the problem domain and the system architecture. l Construction System design, programming and testing. l Transition Deploy the system in its operating environment.
29
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 29 RUP l RUP is not a suitable process for all types of development but it does represent a new generation of generic processes. l Most important innovations: The seperation of phases and workflows Recognition that deploying software in a user’s environment is part of the process.
30
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 30 Static workflows
31
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 4 Slide 31 Key points l Software processes are the activities involved in producing and evolving a software system. l Software process models are abstract representations of these processes. l General activities are specification, design and implementation, validation and evolution. l Generic process models describe the organisation of software processes. Examples include the waterfall model, evolutionary development and component-based software engineering. l Iterative process models describe the software process as a cycle of activities. l Requirements engineering is the process of developing a software specification. l Design and implementation processes transform the specification to an executable program. l Validation involves checking that the system meets to its specification and user needs. l Evolution is concerned with modifying the system after it is in use. l The Rational Unified Process is a generic process model that separates activities from phases.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.