Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 2 Software Processes Slide 1 Chapter 2 Software Processes.

Similar presentations


Presentation on theme: "Chapter 2 Software Processes Slide 1 Chapter 2 Software Processes."— Presentation transcript:

1 Chapter 2 Software Processes Slide 1 Chapter 2 Software Processes

2 Chapter 2 Software Processes Slide 2 Objectives l To introduce software process models. l To describe a number of generic process models and when they may be used. l To outline lower-level process models for (1) requirements engineering, (2) software development, (3) testing, and (4) evolution. l To introduce CASE technology to support software process activities

3 Chapter 2 Software Processes Slide 3 Topics covered l Software process models l Process iteration l Software specification l Software design and implementation l Software verification & validation l Software evolution l Automated process support

4 Chapter 2 Software Processes Slide 4 The software process l A process is a structured set of activities required to develop a software system. l Many different software processes, but all involve: Specification – defining what the system should do; Design & implementation; Validation – checking that it does what the customer wants; Evolution – changing the system in response to changing customer needs. l A process model is an abstract representation of a process. It presents a description of a process from some particular perspective l Models should be as simple as possible, but no simpler. – A. Einstein [struhk-cherd] –adjective; having a clearly defined structure or organization.

5 Chapter 2 Software Processes Slide 5 The software process l A process is a structured set of activities required to develop a software system. l Many different software processes, but all involve: Specification – defining what the system should do; Design & implementation; Validation – checking that it does what the customer wants; Evolution – changing the system in response to changing customer needs. l A process model is an abstract representation of a process. It presents a description of a process from some particular perspective l Models should be as simple as possible, but no simpler. – A. Einstein [struhk-cherd] –adjective; having a clearly defined structure or organization.

6 Chapter 2 Software Processes Slide 6 Plan-driven and agile processes l Plan-driven processes: all of the process activities are planned in advance and progress is measured against this plan. l Agile processes: planning is incremental and it is easier to change the process to reflect changing customer requirements. l In practice, most practical processes include elements of both plan-driven and agile approaches. l There are no right or wrong software processes.

7 Chapter 2 Software Processes Slide 7 Generic software process models l The Waterfall Model – plan-driven model; separate and distinct phases of specification and development. Traditionally: not iterative. l Incremental Development – specification, development, & validation are interleaved; may be plan-driven or agile. l Reuse-Based Development – e.g., component-based: the system is assembled from existing components; may be plan- driven or agile. l In practice, most large systems are developed using a process that incorporates elements from all of these models. (And, at no additional cost: Boehm’s Spiral Model.)

8 Chapter 2 Software Processes Slide 8 Waterfall model (W. Royce)

9 Chapter 2 Software Processes Slide 9 Waterfall model phases l There are separate phases in the waterfall model: Requirements analysis and definition System and software design Implementation and unit testing Integration and system testing Operation and maintenance l The waterfall model is mostly used for large systems engineering projects where a system is developed at several sites. l In those circumstances, the plan-driven nature of the waterfall model helps coordinate the work.

10 Chapter 2 Software Processes Slide 10 Waterfall model problems l Inflexible partitioning of the project into distinct stages makes it difficult to respond to changing customer requirements. Thus, this model is only appropriate when the requirements are well-understood (to begin with). Few business systems have stable requirements. --------------------------------------------- l In general, the drawback of the waterfall model is the difficulty of accommodating change after the process is underway.

11 Chapter 2 Software Processes Slide 11 Incremental development (cont'd)

12 Chapter 2 Software Processes Slide 12 Incremental development benefits l The cost of accommodating changing customer requirements is reduced - amount of analysis and documentation that has to be redone is much less than is required with the waterfall model. l It is easier to get customer feedback - customers can comment on demonstrations of the software and see how much has been implemented. l More rapid delivery and deployment of useful software to the customer is possible - customers are able to use and gain value from the software earlier than is possible with a waterfall process.

13 Chapter 2 Software Processes Slide 13 Incremental development problems l Lack of process visibility - managers need regular deliverables to measure progress. If systems are developed quickly, it is not cost-effective to produce documents that reflect every version of the system. l System structure tends to degrade as new increments are added - unless time and money is spent on refactoring to improve the software, regular change tends to corrupt its structure. Incorporating further software changes becomes increasingly difficult and costly.

14 Chapter 2 Software Processes Slide 14 Reuse-oriented software engineering l Based on systematic (as opposed to serendipitous) reuse - systems are integrated from existing components or COTS (Commercial-off-the-shelf) systems. l Process stages Component analysis (what’s available?) Requirements modification (why?) System design with reuse Development and integration l Reuse is now the standard approach for building many types of business systems. (cont'd)

15 Chapter 2 Software Processes Slide 15 Reuse-oriented software engineering (what’s available?) (cont'd)

16 Chapter 2 Software Processes Slide 16 Types of reusable software components l Web services that are developed according to service standards and which are available for remote invocation. l Collections of objects that are developed as a package to be integrated with a component framework such as.NET or J2EE. l Stand-alone software systems (COTS) that are configured for use in a particular environment.

17 Chapter 2 Software Processes Slide 17 Process activities l Real software processes are interleaved sequences of technical, collaborative and managerial activities with the overall goal of specifying, designing, implementing and testing a software system. l The four basic process activities of specification, development, validation and evolution are organized differently in different development processes. In the waterfall model, they are organized in sequence; in incremental development they are interleaved.

18 Chapter 2 Software Processes Slide 18 Software specification / RE l The process of establishing what services are required and the constraints on the system’s operation and development. l Requirements Engineering (RE) process: Feasibility (technical and otherwise) study Requirements elicitation and analysis Requirements specification (documentation) Requirements validation (cont'd)

19 Chapter 2 Software Processes Slide 19 The requirements engineering process

20 Chapter 2 Software Processes Slide 20 Software design and implementation l The process of producing an executable system based on the specification Software design – design a software structure that realizes the specification. Implementation – translate this structure into an executable program. l The activities of specification, design, and implementation are closely related and may be interleaved.

21 Chapter 2 Software Processes Slide 21 Design activities l Architectural design: identify overall structure of system, principal components (sometimes called sub-systems or modules), their relationships, and how they are distributed. l Interface design: define the interfaces between system components. l Component design: design how each system component will operate. l Database design: design the system data structures and how these are to be represented in a database.

22 Chapter 2 Software Processes Slide 22 Software verification & validation l Verification and validation (V&V) determines whether or not a system (1) conforms to its specification and (2) meets the requirements of the customer. l Involves checking processes (e.g., inspections/reviews and program (machine-based) testing. l Testing is the most commonly used V&V activity and involves executing program elements with test cases that are derived from specifications and/or program logic.

23 Chapter 2 Software Processes Slide 23 Testing stages l Development or component 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 Chapter 2 Software Processes Slide 24 Software evolution (maintenance) l Software is inherently flexible and subject to change. l As requirements change through changing business circumstances, the software that supports the business must also evolve and change. l The distinction between development and evolution is increasingly irrelevant as fewer and fewer systems are completely new. (cont'd)

25 Chapter 2 Software Processes Slide 25 Software evolution (maintenance) e.g., change requests

26 Chapter 2 Software Processes Slide 26 Coping with change l Change is inevitable in all large software projects. Business changes lead to new and changed system requirements. New technologies open up new possibilities for improving implementations. Changing platforms require application changes. l Change costs include both rework (e.g. re-analyzing requirements) and the cost of implementing new functionality.

27 Chapter 2 Software Processes Slide 27 Reducing the costs of rework l Change avoidance: process includes activities that can anticipate possible changes before significant rework is required. For example, a prototype system may be developed to stimulate user/stakeholder abticipation. l Change tolerance: process is designed so that changes can be accommodated at relatively low cost. Proposed changes may be implemented in increments that have not yet been developed. Information hiding techniques may be employed.

28 Chapter 2 Software Processes Slide 28 Software prototyping

29 Chapter 2 Software Processes Slide 29 What is prototyping? l An iterative process emphasizing: Rapid development Concreteness and Evaluative use (a “real system” is developed and presented to real users for evaluation) Consideration of alternatives Feedback Modification

30 Chapter 2 Software Processes Slide 30 General Prototyping process What to include & what NOT to include.

31 Chapter 2 Software Processes Slide 31 Uses of prototypes l Principal use is to help customers and developers better understand system requirements. Experimentation stimulates anticipation of how a system could be used. Attempting to use functions together to accomplish some task can easily reveal requirements problems. (Cont’d)

32 Chapter 2 Software Processes Slide 32 Uses of prototypes (cont’d) l Other potential uses: 1.Evaluating proposed solutions for feasibility (Experimental Prototyping) 2.Develop and evaluate UI designs 3.“Back-to-back” testing 4.Training users before system delivery l Prototyping is most often undertaken as a risk reduction activity.

33 Chapter 2 Software Processes Slide 33 Classifying prototypes l By purpose: Throw-away prototyping – to elicit and validate requirements Experimental prototyping – to evaluate proposed solutions for feasibility, performance, etc. l horizontal vs. vertical (breadth vs. depth) l mockups vs. breadboards (form vs. function) l “Wizard of Oz” prototyping (Turing test reversed)

34 Chapter 2 Software Processes Slide 34 Throw-away prototyping Elicit/validate REQMTS

35 Chapter 2 Software Processes Slide 35 Classifying prototypes l By purpose: Throw-away prototyping – to elicit and validate requirements Experimental prototyping – to evaluate proposed solutions for feasibility, performance, etc. l horizontal vs. vertical (breadth vs. depth) l mockups vs. breadboards (form vs. function) l “Wizard of Oz” prototyping (Turing test reversed)

36 Chapter 2 Software Processes Slide 36 Classifying prototypes l By purpose: Throw-away prototyping – to elicit and validate requirements Experimental prototyping – to evaluate proposed solutions for feasibility, performance, etc. l horizontal vs. vertical (breadth vs. depth) l mockups vs. breadboards (form vs. function) l “Wizard of Oz” prototyping (Turing test reversed)

37 FIdelItyFIdelIty Number of features fewmany low high Vertical prototype Horizontal prototype points of comparable effort

38

39

40 Chapter 2 Software Processes Slide 40 Classifying prototypes l By purpose: Throw-away prototyping – to elicit and validate requirements Experimental prototyping – to evaluate proposed solutions for feasibility, performance, etc. l horizontal vs. vertical (breadth vs. depth) l mockups vs. breadboards (form vs. function) l “Wizard of Oz” prototyping (Turing test reversed)

41 Chapter 2 Software Processes Slide 41 Quin Tech “Self-service check-in and baggage drop-off design” “The design was tested through a full-scale mock-up.”

42 Chapter 2 Software Processes Slide 42 Electronic circuit on a bread- board (REUK.co.uk) “There is no need to solder anything, and the components can be moved around and the circuit modified thousands of times without damaging parts.”

43 Chapter 2 Software Processes Slide 43 Classifying prototypes l By purpose: Throw-away prototyping – to elicit and validate requirements Experimental prototyping – to evaluate proposed solutions for feasibility, performance, etc. l horizontal vs. vertical (breadth vs. depth) l mockups vs. breadboards (form vs. function) l “Wizard of Oz” prototyping (Turing test reversed)

44 Chapter 2 Software Processes Slide 44 The Wizard of Oz exposed… “The truth is the Wizard was an illusion created by a man hidden behind a curtain.”

45 Chapter 2 Software Processes Slide 45 Prototyping versus simulation l What’s the difference between prototyping and simulation?

46 Chapter 2 Software Processes Slide 46 Throw-away prototype delivery l Developers may be pressurized to deliver a throw- away prototype as the final system. l This is problematic... It may be impossible to meet non-functional requirements. The prototype is almost certainly undocumented. The system may be poorly structured and therefore difficult to maintain. Normal organizational quality standards may not have been applied. ?

47 Air Tank Developer User Mgmt No, no, no! I won’t deliver the prototype to you! Pressurizing the Developer

48 Chapter 2 Software Processes Slide 48 Implementation techniques l Various techniques may be used for developing prototypes: Dynamic high-level languages Database programming (RAD) Component and application assembly l These are not mutually exclusive – they are often used together. l Visual programming is also an inherent part of most prototype development systems.

49 Chapter 2 Software Processes Slide 49 Incremental delivery l Rather than deliver the system as a single unit, the development and delivery is broken down into increments, each of which incorporates part of the required functionality. l User requirements are prioritized and the highest priority requirements are included in early increments. l Once the development of an increment is started, its requirements are “frozen” while requirements for later increments can continue to evolve. (Compromise between Waterfall & Evolutionary development) (cont'd)

50 Chapter 2 Software Processes Slide 50 Incremental delivery (cont'd)

51 Chapter 2 Software Processes Slide 51 Incremental delivery advantages l Useful functionality is delivered with each increment, so customers derive value early. l Early increments act as a prototype to help elicit requirements for later increments. l Lower risk of overall project failure. l The highest priority system services tend to receive the most testing. (they're subject to more “validation” steps) (cont'd)

52 Chapter 2 Software Processes Slide 52 Potential problem with incremental delivery l Requirements may NOT be partitionable into stand- alone increments. (e.g., a compiler) (A generalization of incremental delivery, known as Incremental Software Development, is discussed in Chap. 17, Rapid Software Development.)

53 Chapter 2 Software Processes Slide 53 Extreme programming (Beck ’99) l Recent evolution of incremental approach based on Development and delivery of very small increments of functionality Significant customer involvement in process Constant code improvement Egoless, pair-wise programming l NOT document-oriented l Gaining acceptance in some small (and now medium sized) organizations. l Representative of the “Agile” development paradigm. www.agilealliance.org

54 Chapter 2 Software Processes Slide 54 Boehm’s spiral development l Process is represented as a spiral rather than a sequence of activities. l Each loop in the spiral represents a phase in the process. l No fixed phases such as specification or design – loops in the spiral are chosen depending on what is required. l Explicitly incorporates risk assessment and resolution throughout the process. (cont'd)

55 Chapter 2 Software Processes Slide 55 Spiral model of the software process

56 Chapter 2 Software Processes Slide 56 Spiral model quadrants l Objective Setting – specific objectives for the phase are identified. l Risk Assessment and Reduction – risks are assessed and activities put in place to reduce the key risks. l Development and Validation – a development model for the system is chosen which can be any of the generic models. l Planning – the project is reviewed and the next phase of the spiral is planned.

57 Chapter 2 Software Processes Slide 57 The Rational Unified Process l A modern process model derived from the work on the UML and associated process. 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. A hybrid process model that brings together elements from all of the generic process models…represents a new generation of generic processes (cont'd)

58 Chapter 2 Software Processes Slide 58 RUP phase model cf Waterfall Model: RUP phases are more closely related to business rather than technical concerns. (cont'd)

59 Chapter 2 Software Processes Slide 59 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. (cont'd)

60 Chapter 2 Software Processes Slide 60 RUP good practice l Develop software iteratively l Manage requirements l Use component-based architectures l Visually model software (e.g., UML packages, sequence models, state machine models) l Verify software quality l Control changes to software (cont'd)

61 Chapter 2 Software Processes Slide 61 Static workflows (process activities)

62 Chapter 2 Software Processes Slide 62 Automated process support (CASE) l Computer-aided software engineering (CASE) is software to support software development and evolution processes. l Activity automation (examples): Graphical editors for system model development Data dictionaries for name management GUI builders for user interface construction Debuggers to support program fault finding Automated translators to generate new versions of a program (e.g., restructuring tools)

63 Chapter 2 Software Processes Slide 63 CASE technology l CASE technology has led to significant improvements in the software process, but not the order of magnitude improvements that were once predicted. Software engineering involves design activity requiring creative thought – this is not readily automatable. Software engineering is a team activity and, for large projects, much time is spent in team interactions. CASE technology does not support this well.

64 Chapter 2 Software Processes Slide 64 CASE classification l Classification helps us understand the different types of CASE tools / systems and their support for process activities l Functional perspective – tools are classified according to their specific function. l Process perspective – tools are classified according to process activities that are supported. l Integration perspective – CASE systems are classified according to their breadth of support for the software process.

65 Chapter 2 Software Processes Slide 65 Functional tool classification TOOL TYPES: Planning tools Editing tools Change mgmt tools Configuration mgmt tools Prototyping tools Method-support tools Language-processing tools Program analysis tools Testing tools Debugging tools Documentation tools Reengineering tools EXAMPLES: PERT tools, estimation tools, spreadsheets Text editors, diagram editors, word processors Rqmts traceability tools, change control sys Version mgmt systems, system building tools V. high-level langs, user interface generators Design editors, data dicts, code generators Compilers, interpreters Cross ref generators, static/dynamic analyzers Test data generators, file comparators Interactive debugging systems Page layout programs, image editors Cross-ref systems, program restructuring systems

66 Activity-based classification Actually far more lower CASE tools than upper CASE

67 Chapter 2 Software Processes Slide 67 CASE integration l Tools – support individual process tasks such as design consistency checking, text editing, etc. l Workbenches – support a process phase such as specification or design, Normally include a number of integrated tools. l Environments – support all or a substantial part of an entire software process. Normally include several integrated workbenches.

68 Chapter 2 Software Processes Slide 68 Tools, workbenches, environments

69 Chapter 2 Software Processes Slide 69 Key points l Software processes are the activities involved in producing and evolving a software system. They are represented in a software process model. l Fundamental (lower level) activities are specification, design and implementation, validation & verification, and evolution. l Generic models are very general process models representing different approaches to development. l Iterative process models describe the software process as a cycle of activities.

70 Chapter 2 Software Processes Slide 70 Key points (cont’d) l Requirements engineering is the process of establishing what services are required and the constraints on the system’s operation and development. l Design and implementation processes produce an executable system based on the specification. l V&V involves checking that the system meets its specification and satisfies user needs. l Evolution is concerned with modifying the system after it is placed in use. l CASE technology supports software process activities.


Download ppt "Chapter 2 Software Processes Slide 1 Chapter 2 Software Processes."

Similar presentations


Ads by Google