CMSC 435: Software Engineering Section 0201

Similar documents
Software Processes. Ian Sommerville 2006 Software Engineering, 8th edition. Chapter 4 Slide 1

Reducing the costs of rework. Coping with change. Software prototyping. Ways to Cope with change. Benefits of prototyping

Incremental development A.Y. 2018/2019

Second. Incremental development model

Software Engineering Lifecycles. Controlling Complexity

VO Software Engineering

Introduction to Software Engineering

The requirements engineering process

Software Engineering

Software processes. Objectives. Contents

Specifying and Prototyping

Software Engineering

SOFTWARE ENGINEERING. Software Specification Software Design and Implementation Software Validation. Peter Mileff PhD

Administrivia. Added 20 more so far. Software Process. Only one TA so far. CS169 Lecture 2. Start thinking about project proposal

Introduction to Software Engineering

Software Prototyping Animating and demonstrating system requirements. Uses of System Prototypes. Prototyping Benefits

SOFTWARE LIFE-CYCLE MODELS 2.1

System Development Life Cycle Methods/Approaches/Models

1) Software Engineering

SOFTWARE LIFE-CYCLE PROCESSES From Waterfall to Extreme Programming

SE420 - Software Quality Assurance

SOFTWARE ENGINEERING

Software Engineering

SOFTWARE ENGINEERING DECEMBER. Q2a. What are the key challenges being faced by software engineering?

CS SOFTWARE ENGINEERING QUESTION BANK SIXTEEN MARKS

Human Computer Interaction Lecture 14. HCI in Software Process. HCI in the software process

HCI in the software process

HCI in the software. chapter 6. HCI in the software process. The waterfall model. the software lifecycle

Software Engineering Principles

The software lifecycle and its documents

Human Computer Interaction Lecture 06 [ HCI in Software Process ] HCI in the software process

Verification and Validation. Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 1

Verification and Validation

SE 2730 Final Review

Software Verification and Validation (VIMMD052) Introduction. Istvan Majzik Budapest University of Technology and Economics

Software Process. Software Process

Software specification and modelling. Requirements engineering

L17: Assurance. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Development of Integrated Hard- and Software Systems: Tasks and Processes

Chapter 18. Software Reuse

Gradational conception in Cleanroom Software Development

Adopting Agile Practices

Topic 01. Software Engineering, Web Engineering, agile methodologies.

Introduction to Assurance

Development of Integrated Hard- and Software Systems: Tasks and Processes

Agile Accessibility. Presenters: Ensuring accessibility throughout the Agile development process

SOFTWARE REQUIREMENTS ENGINEERING LECTURE # 7 TEAM SKILL 2: UNDERSTANDING USER AND STAKEHOLDER NEEDS REQUIREMENT ELICITATION TECHNIQUES-IV

Verification and Validation

Human-Computer Interaction. CA357 Lecture 7 More on Prototyping

Software Life Cycle. Main issues: Discussion of different life cycle models Maintenance or evolution

Requirements Engineering. Establishing what the customer requires from a software system. Requirements Engineering. What is a Requirement?

OO Project Management

Building the User Interface: The Case for Continuous Development in an Iterative Project Environment

Verification and Validation. Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 1

Systems Analysis and Design

USTGlobal INNOVATION INFORMATION TECHNOLOGY. Using a Test Design Tool to become a Digital Organization

This tutorial also elaborates on other related methodologies like Agile, RAD and Prototyping.

ΗΜΥ 317 Τεχνολογία Υπολογισμού

Requirements. Requirements. Types of Requirement. What Is a Requirement?

Modern Software Engineering Methodologies Meet Data Warehouse Design: 4WD

CSC Advanced Object Oriented Programming, Spring Overview

Advanced Software Engineering: Software Testing

Requirements and Design Overview

Evolutionary Architecture and Design

Software Development Process Models

Ch 1: The Architecture Business Cycle

Architectural Design

Introduction to Software Engineering p. 1 The Scope of Software Engineering p. 3 Historical Aspects p. 4 Economic Aspects p. 7 Maintenance Aspects p.

Objectives. Architectural Design. Software architecture. Topics covered. Architectural design. Advantages of explicit architecture

Process Models. Projects Process. Common Process Models. Typical Student Process Model. Waterfall Model

Lesson 06. Requirement Engineering Processes

Ingegneria del Software II academic year: Course Web-site: [

Ian Sommerville 2006 Software Engineering, 8th edition. Chapter 22 Slide 1

Part 5. Verification and Validation

VANCOUVER Chapter Study Group. BABOK Chapter 9 Techniques

Objectives. Connecting with Computer Science 2

Sample Exam Syllabus

Examples. Object Orientated Analysis and Design. Benjamin Kenwright

Software Development Chapter 1

Chapter 9. Software Testing

Part 4. Development. -Software Reuse - Component-Based Software Engineering. JUNBEOM YOO Ver. 1.

Architectural Blueprint

Software Prototyping ( プロトタイピング ) Animating and demonstrating system requirements

TDDD04 Software Testing

Verification and Validation

Verification and Validation

Examination Questions Time allowed: 1 hour 15 minutes

Dilbert Scott Adams. CSc 233 Spring 2012

18-642: Software Development Processes

Certified Software Quality Engineer Preparation On Demand, Web-Based Course Offered by The Westfall Team

Process of Interaction Design and Design Languages

Software Engineering

Systems Analysis & Design

CS3724 Human-computer Interaction

Product Quality Engineering. RIT Software Engineering

Testing in the Agile World

Introduction to User Stories. CSCI 5828: Foundations of Software Engineering Lecture 05 09/09/2014

Implementation Architecture

What is a prototype?

Virtualization. Q&A with an industry leader. Virtualization is rapidly becoming a fact of life for agency executives,

Transcription:

CMSC 435: Software Engineering Section 0201 Atif M. Memon (atif@cs.umd.edu) 4115 A.V.Williams building Phone: 301-405-3071 Office hours Tu.Th. (11:00am-1:00pm) Don t wait, don t hesitate, do communicate!! Phone E-mail Office hours Course discussion group Class TA More Resources Ishan Banerjee ishan@cs.umd.edu Office location 4122 A.V.Williams building Office hours TBA Course page www.cs.umd.edu/~atif/teaching/spring2003 1

How Cars are Engineered (A simple view) User requirements Engine power, all-wheel, seating, comfort, MP3 player!! Detailed design Blueprints, design documents Test design Simulation, prototyping Develop parts (components) Test each component Components may be reused Mass produced Assemble the car Test the car Front/side crash tests Stability tests Usability testing Feedback from drivers/passengers In Pictures!! 2

But Seriously Features of many LEGO parts Modularity Reusability Each part can be used in different places and ways Flexibility of design Compatibility With other LEGO sets Building-blocks Similar Techniques Used by Builders: Bridges 3

Detailed Design and Specifications Galvanized Bridge Wire for Parallel Wire Bridge Cables. Recommended diameter.196 inch. Galvanized Bridge Strand--consists of several bridge wires, of various diameters twisted together. Galvanized Bridge Rope--consists of six strands twisted around a strand core. Parallel Wire Cable Detail of Main Cable and Cable Band. The wrapping wire is omitted at the right for clarity. Note the closed construction and aluminum fillers. More Detailed Design and Specifications 4

Tacoma Narrows Bridge Disaster Back to Software Software uses some of the most complex structures ever designed Need to apply/develop engineering principles to/for software Software engineering is concerned with theories, methods and tools for professional software development 5

Important: Team Work Most software is developed By teams of Designers Programmers Managers Social skills Trust other team members They will develop software components that you may use Management skills Schedules Work distribution Budget A Few Facts About Software Today Software costs often dominate system costs. The costs of software are often greater than the hardware cost Software costs more to maintain than it does to develop. For systems with a long life, maintenance costs may be several times development costs 6

Costs Involved Typically 60% of costs are development costs, 40% are testing costs. For custom software, evolution costs often exceed development costs Costs vary depending on the type of system being developed and the requirements of system attributes such as performance and system reliability Distribution of costs depends on the development method that is used We will Engineer Software But what is software? Computer programs and Associated documentation Software products may be developed for A particular customer or A general market 7

Role of a Software Engineer Software engineers should adopt a systematic and organised approach to their work and use appropriate tools and techniques depending on the problem to be solved, the development constraints and the resources available Attributes of Good Software Should deliver the required functionality and performance Maintainability Software must evolve to meet changing needs Dependability Software must be trustworthy Efficiency Software should not make wasteful use of system resources Usability Software must be usable by the users for which it was designed 8

Software Processes What is a Software Process? A set of activities whose goal is the development or evolution of software Some Activities: Specification what the system should do and its development constraints Development production of the software system Validation checking that the software is what the customer wants Evolution changing the software in response to changing demands Software Process Models A simplified representation of a software process, presented from a specific perspective Examples of process perspectives are Workflow perspective sequence of activities Data-flow perspective information flow Role/action perspective who does what Generic process models Waterfall Evolutionary development Formal transformation Integration from reusable components 9

Generic Software Process Models The waterfall model Separate and distinct phases of specification and development Evolutionary development Specification and development are interleaved Formal systems development A mathematical system model is formally transformed to an implementation Reuse-based development The system is assembled from existing components Waterfall Model Requirements Definition System & Software Design Implementation & Unit Testing Integration & System Testing Operation & Maintenance 10

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 requirements are well-understood 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 Throw-away prototyping Objective is to understand the system requirements. Should start with poorly understood requirements 11

Evolutionary Development Concurrent Activities Specification Initial Version Outline Description Development Intermediate Intermediate Versions Versions Validation Final Version Evolutionary Development 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 12

Formal Systems Development Based on the transformation of a mathematical specification through different representations to an executable program Transformations are correctnesspreserving so it is straightforward to show that the program conforms to its specification Embodied in the Cleanroom approach to software development Formal Systems Development Requirements Definition Formal Specification Formal Transformation Integration & System Testing 13

Formal Transformations Formal Transformations T1 T2 T3 T4 Formal Specification R1 R1 R2 R2 R3 R3 Executable Program P1 P1 P2 P2 P3 P3 P4 P4 Proofs of Transformation Correctness Formal Systems Development Problems Need for specialised skills and training to apply the technique Difficult to formally specify some aspects of the system such as the user interface Applicability Critical systems especially those where a safety or security case must be made before the system is put into operation 14

Reuse-oriented Development Based on systematic reuse where systems are integrated from existing components or COTS (Commercial-offthe-shelf) systems Process stages Component analysis Requirements modification System design with reuse Development and integration This approach has received a lot of attention recently Reuse-oriented Development Requirements Specification Component Analysis Requirements Modification System Design With Reuse Development & Integration System Validation 15

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 (related) approaches Incremental development Spiral development Incremental Development 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 prioritized 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 16

Incremental Development Define Outline Requirements Assign Requirements to to Increments Develop System Increment Validate Increment Integrate Increment System Incomplete Design System Architecture Validate System Final Version 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 17

Extreme Programming New approach to development based on the development and delivery of very small increments of functionality Relies on constant code improvement, user involvement in the development team and pairwise programming Spiral Development 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 on what is required Risks are explicitly assessed and resolved throughout the process 18

Spiral Model of the Software Process Determine ob jectiv es alternatives and constraints Plan next p hase REVIEW Requirements plan Life-cycle plan Development plan Integration and test p lan Risk analysis Risk analysis Risk analysis Prototype 2 Risk anal ysis Prototype 1 Concept o f Operation S/W requirements Requirement valid ation Design V&V Serv ice Acceptance test Evaluate alternatives identify, resolve risks Prototyp e 3 Operational protoype Simulations, models, benchmarks Product design Code Unit test Integr ation test Detailed design Develop, verify next-level product 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 19

Software Specification The process of establishing what services are required and the constraints on the system s operation and development The Requirements Engineering Process Feasibility Study Feasibility Report Requirements Elicitation & Analysis System Models Requirements Specification User & System Requirements Requirements Validation Requirements Document 20

Software Design and Implementation The process of converting the system specification into an executable system Software design Design a software structure that realises the specification Implementation Translate this structure into an executable program The activities of design and implementation are closely related and may be inter-leaved The Software Design Process Requirements Specification Architectural Architectural Design Design System System Architecture Architecture Abstract Abstract Specification Specification Interface Interface Design Design Software Software Specification Specification Interface Interface Specification Specification Design Products Design Activities Component Component Design Design Data Data Structure Structure Design Component Design Component Specification Specification Data Data Structure Structure Specification Specification Algorithm Algorithm Design Design Algorithm Algorithm Specification Specification 21

Design Methods Systematic approaches to developing a software design The design is usually documented as a set of graphical models Possible models Data-flow model Entity-relation-attribute model Structural model Object models Programming and Debugging Translating a design into a program and removing errors from that program Programming is a personal activity - there is no generic programming process Programmers carry out some program testing to discover faults in the program and remove these faults in the debugging process 22

The Debugging Process Locate Error Design Error Repair Repair Error Retest Program Software Validation Verification and validation 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 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 23

Unit Testing The Testing Process Module Testing Sub-system Testing System Testing Component Testing Integration Testing Acceptance Testing User Testing Testing Stages Unit testing Individual components are tested Module testing Related collections of dependent components are tested Sub-system testing Modules are integrated into sub-systems and tested. The focus here should be on interface testing System testing Testing of the system as a whole. Testing of emergent properties Acceptance testing Testing with customer data to check that it is acceptable 24

Testing Phases Requirements Specification System Specification System Design Design Detailed Design Design Acceptance Test Plan Plan System Integration Test Plan Plan Sub-system Integration Test Plan Plan Module & Unit Unit Code Code & Tests Tests Acceptance Test Test System Integration Test Test Sub-system Integration Test Test Service 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 25

System Evolution Define System Requirements Assess Existing Systems Propose System Changes Modify Systems Existing Systems New System 26