330 likes | 547 Views
Software Processes. The software process. Software process: A structured set of activities required to develop a software system Fundamental activities which are common to all software activities: Specification; Design; Validation; Evolution.
E N D
The software process • Software process: A structured set of activities required to develop a software system • Fundamental activities which are common to all software activities: • Specification; • Design; • Validation; • Evolution. • A software process model is an abstract representation of a process. • It presents a description of a process from some particularperspective-> Each process model provides only partial information about that process.
Generic software process models • The waterfall model • Seperates process phases such as requirements specifications, software design, implementation and testing. • Evolutionary development • Specification, development and validation are interleaved. • An initial system is rapidly developed from abstract specifications. • Then, refined with customer input. • 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. • These three process models are widely used in current software engineering practice. • There are many variants of these models. • They are often used together, especially for large systems development.
Waterfall model • The result of each phase is one or more documents that are approved. • The following phase should not start until the previous phase has finished. • 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.
Waterfall model problems • Inflexible partitioning of the project into distinct stages makes it difficult to respond to changing customer requirements. • Therefore, this model is only appropriate when the requirements are well-understood and changes will be fairly limited during the design process. • Few business systems have stable requirements. • The waterfall model is mostly used for large systems engineering projects where a system is developed at several sites.
Evolutionary development • 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: • 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. • Throw-away prototyping • Objective is to understand the system requirements. Should start with poorly understood requirements to clarify what is really needed.
Evolutionary development From an engineering and management perspective, the evolutionary approach has two problems: • Problems • Lack of process visibility; • Systems are often poorly structured; • Special skills (e.g. in languages for rapid prototyping) may be required. • Applicability • For small or medium-size interactive systems; • For parts of large systems (e.g. the user interface); • For short-lifetime systems.
Component-based software engineering • Based on systematic reuse where systems are integrated from existing components or COTS (Commercial-off-the-shelf) systems. • While the initial requirements specification stage and the testing stage are comparable with other processes, the intermediate stages are different. • Process stages • Component analysis; • Requirements modification; • System design with reuse; • Development and integration. • This approach is becoming increasingly used as component standards have emerged.
Process iteration • 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. • 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.
Process activities • Software specification • Software design and implementation • Software validation • Software evolution • in waterfall model -> activities are organised in sequence. • in evolutionary model -> activities are interleaved. • No right or wrong way to organise these activities!
Software specification • 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. • This process leads to the production of a requirements document that is a specification for the system. • There are four main phases of requirements engineering process (next figure): • Feasibility study; • Requirements elicitation and analysis; • Requirements specification; • Requirements validation.
Software design and implementation • 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. • Software implementation: Translationof this structure into an executable program; • The activities of design and implementation are closely related and may be inter-leaved.
Design process activities The specific design processes are given as (next figure): • Architectural design • Abstract specification • Interface design • Component design • Data structure design • Algorithm design
Structured methods • 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)). • A structured method includes a design process model, notations to represent the design, report formats, rules and design guidelines. • 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.
Programming and debugging • Programming is a personal activity and there is no general process that is usually followed. • Programming: Translating a design into a program • Debugging: Removing errors from that program. • Debugging != Testing: Testing establishes the existence of defects. Debugging is concerned with locating and correcting these defects. • Programmers carry out some program testing to discover faults in the program and remove these faults in the debugging process.
Software validation • Verification and validation (V & V) is intended to show that a system conforms to its specification and meets the requirements of the system customer. • Involves checking and review processes and system testing (We will see the in detail further). • 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.
Testing stages • Component or unit testing • Individual components are tested independently; • Components may be functions or objects or coherent groupings of these entities. • System testing • Testing of the system as a whole. Testing of emergent properties is particularly important. • Acceptance testing • Testing with customer data to check that the system meets the customer’s needs.
Software evolution • Software is inherently flexible and can change. • As requirements change through changing business circumstances, the software that supports the business must also evolve and change.
The Rational Unified Process • The RUP: An example of a modern process model derived from the work on the UML and associated process. • It is a good example of a hybrid process model. • It brings together elements from all the generic process models, it supports iteration and it illustrates good practice in specification and design. • 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.
RUP phases • Inception • Establish the business case for the system. • Elaboration • Develop an understanding of the problem domain and the system architecture. • Construction • System design, programming and testing. • Transition • Deploy the system in its operating environment.
RUP • RUP is not a suitable process for all types of development but it does represent a new generation of generic processes. • Most important innovations: • The seperation of phases and workflows • Recognition that deploying software in a user’s environment is part of the process.
Key points • Software processes are the activities involved in producing and evolving a software system. • Software process models are abstract representations of these processes. • General activities are specification, design and implementation, validation and evolution. • Generic process models describe the organisation of software processes. Examples include the waterfall model, evolutionary development and component-based software engineering. • Iterative process models describe the software process as a cycle of activities. • Requirements engineering is the process of developing a software specification. • Design and implementation processes transform the specification to an executable program. • Validation involves checking that the system meets to its specification and user needs. • Evolution is concerned with modifying the system after it is in use. • The Rational Unified Process is a generic process model that separates activities from phases.