slides chapters 21-23

65
1 Part 4 Managing Software Project Software Engineering: A Practitioner’s Approach, 6th edition by Roger S. Pressman

Upload: priyanka-shetty

Post on 19-May-2015

2.758 views

Category:

Documents


4 download

DESCRIPTION

Software EngineeringBy Roger Pressman

TRANSCRIPT

Page 1: Slides chapters 21-23

1

Part 4 Managing Software

Project

Part 4 Managing Software

Project Software Engineering: A Practitioner’s Approach, 6th editionby Roger S. Pressman

Page 2: Slides chapters 21-23

2

Chapter 21Project Management

Concepts

Chapter 21Project Management

Concepts Software Engineering: A Practitioner’s Approach, 6th editionby Roger S. Pressman

Page 3: Slides chapters 21-23

3

The 4 P’sThe 4 P’s

People — the most important element of a successful project

Product — the software to be built Process — the set of framework

activities and software engineering tasks to get the job done

Project — all work required to make the product a reality

People — the most important element of a successful project

Product — the software to be built Process — the set of framework

activities and software engineering tasks to get the job done

Project — all work required to make the product a reality

Page 4: Slides chapters 21-23

4

StakeholdersStakeholders Senior managers who define the business issues that often

have significant influence on the project. Project (technical) managers who must plan, motivate, organize,

and control the practitioners who do software work. Practitioners who deliver the technical skills that are necessary

to engineer a product or application. Customers who specify the requirements for the software to be

engineered and other stakeholders who have a peripheral interest in the outcome.

End-users who interact with the software once it is released for production use.

Senior managers who define the business issues that often have significant influence on the project.

Project (technical) managers who must plan, motivate, organize, and control the practitioners who do software work.

Practitioners who deliver the technical skills that are necessary to engineer a product or application.

Customers who specify the requirements for the software to be engineered and other stakeholders who have a peripheral interest in the outcome.

End-users who interact with the software once it is released for production use.

Page 5: Slides chapters 21-23

5

Software TeamsSoftware TeamsHow to lead?

How to organize?

How to motivate?

How to collaborate?

How to create good ideas?

Page 6: Slides chapters 21-23

6

Team LeaderTeam Leader

The MOI Model: Motivation. The ability to encourage (by “push or pull”)

technical people to produce to their best ability. Organization. The ability to mold existing processes (or

invent new ones) that will enable the initial concept to be translated into a final product.

Ideas or innovation. The ability to encourage people to create and feel creative even when they must work within bounds established for a particular software product or application.

The MOI Model: Motivation. The ability to encourage (by “push or pull”)

technical people to produce to their best ability. Organization. The ability to mold existing processes (or

invent new ones) that will enable the initial concept to be translated into a final product.

Ideas or innovation. The ability to encourage people to create and feel creative even when they must work within bounds established for a particular software product or application.

Page 7: Slides chapters 21-23

7

Software TeamsSoftware Teams The difficulty of the problem to be solved The size of the resultant program(s) in lines of code or function

points The time that the team will stay together (team lifetime) The degree to which the problem can be modularized The required quality and reliability of the system to be built The rigidity of the delivery date The degree of sociability (communication) required for the

project

The difficulty of the problem to be solved The size of the resultant program(s) in lines of code or function

points The time that the team will stay together (team lifetime) The degree to which the problem can be modularized The required quality and reliability of the system to be built The rigidity of the delivery date The degree of sociability (communication) required for the

project

The following factors must be considered when selectingThe following factors must be considered when selectinga software project team structure ...a software project team structure ...

Page 8: Slides chapters 21-23

8

Organizational ParadigmsOrganizational Paradigms Closed paradigm—structures a team along a traditional

hierarchy of authority Random paradigm—structures a team loosely and depends on

individual initiative of the team members Open paradigm—attempts to structure a team in a manner that

achieves some of the controls associated with the closed paradigm but also much of the innovation that occurs when using the random paradigm

Synchronous paradigm—relies on the natural compartmentalization of a problem and organizes team members to work on pieces of the problem with little active communication among themselves

Closed paradigm—structures a team along a traditional hierarchy of authority

Random paradigm—structures a team loosely and depends on individual initiative of the team members

Open paradigm—attempts to structure a team in a manner that achieves some of the controls associated with the closed paradigm but also much of the innovation that occurs when using the random paradigm

Synchronous paradigm—relies on the natural compartmentalization of a problem and organizes team members to work on pieces of the problem with little active communication among themselves

suggested by Constantine [CON93]

Page 9: Slides chapters 21-23

9

Avoid Team “Toxicity” Avoid Team “Toxicity” A frenzied work atmosphere in which team members waste

energy and lose focus on the objectives of the work to be performed.

High frustration caused by personal, business, or technological factors that cause friction among team members.

“Fragmented or poorly coordinated procedures” or a poorly defined or improperly chosen process model that becomes a roadblock to accomplishment.

Unclear definition of roles resulting in a lack of accountability and resultant finger-pointing.

“Continuous and repeated exposure to failure” that leads to a loss of confidence and a lowering of morale.

A frenzied work atmosphere in which team members waste energy and lose focus on the objectives of the work to be performed.

High frustration caused by personal, business, or technological factors that cause friction among team members.

“Fragmented or poorly coordinated procedures” or a poorly defined or improperly chosen process model that becomes a roadblock to accomplishment.

Unclear definition of roles resulting in a lack of accountability and resultant finger-pointing.

“Continuous and repeated exposure to failure” that leads to a loss of confidence and a lowering of morale.

Page 10: Slides chapters 21-23

10

Agile TeamsAgile Teams Team members must have trust in one another. The distribution of skills must be appropriate to the problem. Mavericks may have to be excluded from the team, if team

cohesiveness is to be maintained. Team is “self-organizing”

An adaptive team structure Uses elements of Constantine’s random, open, and

synchronous paradigms Significant autonomy

Team members must have trust in one another. The distribution of skills must be appropriate to the problem. Mavericks may have to be excluded from the team, if team

cohesiveness is to be maintained. Team is “self-organizing”

An adaptive team structure Uses elements of Constantine’s random, open, and

synchronous paradigms Significant autonomy

Page 11: Slides chapters 21-23

11

Team Coordination & CommunicationTeam Coordination & Communication Formal, impersonal approaches include software engineering

documents and work products (including source code), technical memos, project milestones, schedules, and project control tools (Chapter 23), change requests and related documentation, error tracking reports, and repository data (see Chapter 26).

Formal, interpersonal procedures focus on quality assurance activities (Chapter 25) applied to software engineering work products. These include status review meetings and design and code inspections.

Informal, interpersonal procedures include group meetings for information dissemination and problem solving and “collocation of requirements and development staff.”

Electronic communication encompasses electronic mail, electronic bulletin boards, and by extension, video-based conferencing systems.

Interpersonal networking includes informal discussions with team members and those outside the project who may have experience or insight that can assist team members.

Formal, impersonal approaches include software engineering documents and work products (including source code), technical memos, project milestones, schedules, and project control tools (Chapter 23), change requests and related documentation, error tracking reports, and repository data (see Chapter 26).

Formal, interpersonal procedures focus on quality assurance activities (Chapter 25) applied to software engineering work products. These include status review meetings and design and code inspections.

Informal, interpersonal procedures include group meetings for information dissemination and problem solving and “collocation of requirements and development staff.”

Electronic communication encompasses electronic mail, electronic bulletin boards, and by extension, video-based conferencing systems.

Interpersonal networking includes informal discussions with team members and those outside the project who may have experience or insight that can assist team members.

Page 12: Slides chapters 21-23

12

The Product ScopeThe Product Scope Scope:

Context. How does the software to be built fit into a larger system, product, or business context and what constraints are imposed as a result of the context?

Information objectives. What customer-visible data objects (Chapter 8) are produced as output from the software? What data objects are required for input?

Function and performance. What function does the software perform to transform input data into output? Are any special performance characteristics to be addressed?

Software project scope must be unambiguous and understandable at the management and technical levels.

Scope: Context. How does the software to be built fit into a larger

system, product, or business context and what constraints are imposed as a result of the context?

Information objectives. What customer-visible data objects (Chapter 8) are produced as output from the software? What data objects are required for input?

Function and performance. What function does the software perform to transform input data into output? Are any special performance characteristics to be addressed?

Software project scope must be unambiguous and understandable at the management and technical levels.

Page 13: Slides chapters 21-23

13

Problem DecompositionProblem Decomposition Sometimes called partitioning or problem elaboration Once scope is defined …

It is decomposed into constituent functions It is decomposed into user-visible data objects or It is decomposed into a set of problem classes

Decomposition process continues until all functions or problem classes have been defined

Sometimes called partitioning or problem elaboration Once scope is defined …

It is decomposed into constituent functions It is decomposed into user-visible data objects or It is decomposed into a set of problem classes

Decomposition process continues until all functions or problem classes have been defined

Page 14: Slides chapters 21-23

14

The ProcessThe Process Once a process framework has been established

Consider project characteristics Determine the degree of rigor required Define a task set for each software engineering activity

Task set = Software engineering tasks Work products Quality assurance points Milestones

Once a process framework has been established Consider project characteristics Determine the degree of rigor required Define a task set for each software engineering activity

Task set = Software engineering tasks Work products Quality assurance points Milestones

Page 15: Slides chapters 21-23

15

Melding the Problemand the ProcessMelding the Problemand the Process

Page 16: Slides chapters 21-23

16

The ProjectThe Project Projects get into trouble when …

Software people don’t understand their customer’s needs. The product scope is poorly defined. Changes are managed poorly. The chosen technology changes. Business needs change [or are ill-defined]. Deadlines are unrealistic. Users are resistant. Sponsorship is lost [or was never properly obtained]. The project team lacks people with appropriate skills. Managers [and practitioners] avoid best practices and lessons

learned.

Projects get into trouble when … Software people don’t understand their customer’s needs. The product scope is poorly defined. Changes are managed poorly. The chosen technology changes. Business needs change [or are ill-defined]. Deadlines are unrealistic. Users are resistant. Sponsorship is lost [or was never properly obtained]. The project team lacks people with appropriate skills. Managers [and practitioners] avoid best practices and lessons

learned.

Page 17: Slides chapters 21-23

17

Common-Sense Approachto ProjectsCommon-Sense Approachto Projects Start on the right foot. This is accomplished by working hard (very

hard) to understand the problem that is to be solved and then setting realistic objectives and expectations.

Maintain momentum. The project manager must provide incentives to keep turnover of personnel to an absolute minimum, the team should emphasize quality in every task it performs, and senior management should do everything possible to stay out of the team’s way.

Track progress. For a software project, progress is tracked as work products (e.g., models, source code, sets of test cases) are produced and approved (using formal technical reviews) as part of a quality assurance activity.

Make smart decisions. In essence, the decisions of the project manager and the software team should be to “keep it simple.”

Conduct a postmortem analysis. Establish a consistent mechanism for extracting lessons learned for each project.

Start on the right foot. This is accomplished by working hard (very hard) to understand the problem that is to be solved and then setting realistic objectives and expectations.

Maintain momentum. The project manager must provide incentives to keep turnover of personnel to an absolute minimum, the team should emphasize quality in every task it performs, and senior management should do everything possible to stay out of the team’s way.

Track progress. For a software project, progress is tracked as work products (e.g., models, source code, sets of test cases) are produced and approved (using formal technical reviews) as part of a quality assurance activity.

Make smart decisions. In essence, the decisions of the project manager and the software team should be to “keep it simple.”

Conduct a postmortem analysis. Establish a consistent mechanism for extracting lessons learned for each project.

Page 18: Slides chapters 21-23

18

To Get to the Essenceof a ProjectTo Get to the Essenceof a Project Why is the system being developed? What will be done? When will it be accomplished? Who is responsible? Where are they organizationally located? How will the job be done technically and

managerially? How much of each resource (e.g., people, software,

tools, database) will be needed?

Why is the system being developed? What will be done? When will it be accomplished? Who is responsible? Where are they organizationally located? How will the job be done technically and

managerially? How much of each resource (e.g., people, software,

tools, database) will be needed?Barry Boehm

Page 19: Slides chapters 21-23

19

Critical PracticesCritical Practices Formal risk management

Empirical cost and schedule estimation

Metrics-based project management

Earned value tracking

Defect tracking against quality targets

People aware project management

Formal risk management

Empirical cost and schedule estimation

Metrics-based project management

Earned value tracking

Defect tracking against quality targets

People aware project management

Page 20: Slides chapters 21-23

20

Chapter 22 Process and Project

Metrics

Chapter 22 Process and Project

Metrics Software Engineering: A Practitioner’s Approach, 6th editionby Roger S. Pressman

Page 21: Slides chapters 21-23

21

A Good Manager Measures

measurementmeasurement

What do weWhat do weuse as ause as abasis?basis?

• • size?size? • • function?function?

project metricsproject metrics

process metricsprocess metricsprocessprocess

productproduct

product metricsproduct metrics

Page 22: Slides chapters 21-23

22

Why Do We Measure?Why Do We Measure?

assess the status of an ongoing project track potential risks uncover problem areas before they go

“critical,” adjust work flow or tasks, evaluate the project team’s ability to control

quality of software work products.

assess the status of an ongoing project track potential risks uncover problem areas before they go

“critical,” adjust work flow or tasks, evaluate the project team’s ability to control

quality of software work products.

Page 23: Slides chapters 21-23

23

Process MeasurementProcess Measurement We measure the efficacy of a software process indirectly.

That is, we derive a set of metrics based on the outcomes that can be derived from the process.

Outcomes include measures of errors uncovered before release of the software defects delivered to and reported by end-users work products delivered (productivity) human effort expended calendar time expended schedule conformance other measures.

We also derive process metrics by measuring the characteristics of specific software engineering tasks.

We measure the efficacy of a software process indirectly. That is, we derive a set of metrics based on the outcomes that can

be derived from the process. Outcomes include

measures of errors uncovered before release of the software defects delivered to and reported by end-users work products delivered (productivity) human effort expended calendar time expended schedule conformance other measures.

We also derive process metrics by measuring the characteristics of specific software engineering tasks.

Page 24: Slides chapters 21-23

24

Process Metrics GuidelinesProcess Metrics Guidelines Use common sense and organizational sensitivity when

interpreting metrics data. Provide regular feedback to the individuals and teams who

collect measures and metrics. Don’t use metrics to appraise individuals. Work with practitioners and teams to set clear goals and metrics

that will be used to achieve them. Never use metrics to threaten individuals or teams. Metrics data that indicate a problem area should not be

considered “negative.” These data are merely an indicator for process improvement.

Don’t obsess on a single metric to the exclusion of other important metrics.

Use common sense and organizational sensitivity when interpreting metrics data.

Provide regular feedback to the individuals and teams who collect measures and metrics.

Don’t use metrics to appraise individuals. Work with practitioners and teams to set clear goals and metrics

that will be used to achieve them. Never use metrics to threaten individuals or teams. Metrics data that indicate a problem area should not be

considered “negative.” These data are merely an indicator for process improvement.

Don’t obsess on a single metric to the exclusion of other important metrics.

Page 25: Slides chapters 21-23

25

Software Process ImprovementSoftware Process Improvement

SPI

Process model

Improvement goals

Process metrics

Process improvementrecommendations

Page 26: Slides chapters 21-23

26

Process MetricsProcess Metrics Quality-related

focus on quality of work products and deliverables Productivity-related

Production of work-products related to effort expended Statistical SQA data

error categorization & analysis Defect removal efficiency

propagation of errors from process activity to activity Reuse data

The number of components produced and their degree of reusability

Quality-related focus on quality of work products and deliverables

Productivity-related Production of work-products related to effort expended

Statistical SQA data error categorization & analysis

Defect removal efficiency propagation of errors from process activity to activity

Reuse data The number of components produced and their degree of

reusability

Page 27: Slides chapters 21-23

27

Project MetricsProject Metrics used to minimize the development schedule by making the

adjustments necessary to avoid delays and mitigate potential problems and risks

used to assess product quality on an ongoing basis and, when necessary, modify the technical approach to improve quality.

every project should measure: inputs—measures of the resources (e.g., people, tools) required to do

the work. outputs—measures of the deliverables or work products created

during the software engineering process. results—measures that indicate the effectiveness of the deliverables.

used to minimize the development schedule by making the adjustments necessary to avoid delays and mitigate potential problems and risks

used to assess product quality on an ongoing basis and, when necessary, modify the technical approach to improve quality.

every project should measure: inputs—measures of the resources (e.g., people, tools) required to do

the work. outputs—measures of the deliverables or work products created

during the software engineering process. results—measures that indicate the effectiveness of the deliverables.

Page 28: Slides chapters 21-23

28

Typical Project MetricsTypical Project Metrics

Effort/time per software engineering task Errors uncovered per review hour Scheduled vs. actual milestone dates Changes (number) and their

characteristics Distribution of effort on software

engineering tasks

Effort/time per software engineering task Errors uncovered per review hour Scheduled vs. actual milestone dates Changes (number) and their

characteristics Distribution of effort on software

engineering tasks

Page 29: Slides chapters 21-23

29

Metrics GuidelinesMetrics Guidelines Use common sense and organizational sensitivity when

interpreting metrics data. Provide regular feedback to the individuals and teams who have

worked to collect measures and metrics. Don’t use metrics to appraise individuals. Work with practitioners and teams to set clear goals and metrics

that will be used to achieve them. Never use metrics to threaten individuals or teams. Metrics data that indicate a problem area should not be

considered “negative.” These data are merely an indicator for process improvement.

Don’t obsess on a single metric to the exclusion of other important metrics.

Use common sense and organizational sensitivity when interpreting metrics data.

Provide regular feedback to the individuals and teams who have worked to collect measures and metrics.

Don’t use metrics to appraise individuals. Work with practitioners and teams to set clear goals and metrics

that will be used to achieve them. Never use metrics to threaten individuals or teams. Metrics data that indicate a problem area should not be

considered “negative.” These data are merely an indicator for process improvement.

Don’t obsess on a single metric to the exclusion of other important metrics.

Page 30: Slides chapters 21-23

30

Typical Size-Oriented MetricsTypical Size-Oriented Metrics errors per KLOC (thousand lines of code) defects per KLOC $ per LOC pages of documentation per KLOC errors per person-month Errors per review hour LOC per person-month $ per page of documentation

errors per KLOC (thousand lines of code) defects per KLOC $ per LOC pages of documentation per KLOC errors per person-month Errors per review hour LOC per person-month $ per page of documentation

Page 31: Slides chapters 21-23

31

Typical Function-Oriented MetricsTypical Function-Oriented Metrics

errors per FP (thousand lines of code) defects per FP $ per FP pages of documentation per FP FP per person-month

errors per FP (thousand lines of code) defects per FP $ per FP pages of documentation per FP FP per person-month

Page 32: Slides chapters 21-23

32

Comparing LOC and FPComparing LOC and FP

Programming LOC per Function point

Language avg. median low high

Ada 154 - 104 205Assembler 337 315 91 694C 162 109 33 704C++ 66 53 29 178

COBOL 77 77 14 400Java 63 53 77 -JavaScript 58 63 42 75Perl 60 - - -PL/1 78 67 22 263Powerbuilder 32 31 11 105SAS 40 41 33 49Smalltalk 26 19 10 55SQL 40 37 7 110Visual Basic 47 42 16 158

Representative values developed by QSM

Page 33: Slides chapters 21-23

33

Why Opt for FP?Why Opt for FP?

Programming language independent Used readily countable characteristics that are

determined early in the software process Does not “penalize” inventive (short)

implementations that use fewer LOC that other more clumsy versions

Makes it easier to measure the impact of reusable components

Programming language independent Used readily countable characteristics that are

determined early in the software process Does not “penalize” inventive (short)

implementations that use fewer LOC that other more clumsy versions

Makes it easier to measure the impact of reusable components

Page 34: Slides chapters 21-23

34

Object-Oriented MetricsObject-Oriented Metrics

Number of scenario scripts (use-cases) Number of support classes (required to implement

the system but are not immediately related to the problem domain)

Average number of support classes per key class (analysis class)

Number of subsystems (an aggregation of classes that support a function that is visible to the end-user of a system)

Number of scenario scripts (use-cases) Number of support classes (required to implement

the system but are not immediately related to the problem domain)

Average number of support classes per key class (analysis class)

Number of subsystems (an aggregation of classes that support a function that is visible to the end-user of a system)

Page 35: Slides chapters 21-23

35

WebE Project MetricsWebE Project Metrics Number of static Web pages (the end-user has no control over

the content displayed on the page) Number of dynamic Web pages (end-user actions result in

customized content displayed on the page) Number of internal page links (internal page links are pointers

that provide a hyperlink to some other Web page within the WebApp)

Number of persistent data objects Number of external systems interfaced Number of static content objects Number of dynamic content objects Number of executable functions

Number of static Web pages (the end-user has no control over the content displayed on the page)

Number of dynamic Web pages (end-user actions result in customized content displayed on the page)

Number of internal page links (internal page links are pointers that provide a hyperlink to some other Web page within the WebApp)

Number of persistent data objects Number of external systems interfaced Number of static content objects Number of dynamic content objects Number of executable functions

Page 36: Slides chapters 21-23

36

Measuring QualityMeasuring Quality

Correctness — the degree to which a program operates according to specification

Maintainability—the degree to which a program is amenable to change

Integrity—the degree to which a program is impervious to outside attack

Usability—the degree to which a program is easy to use

Correctness — the degree to which a program operates according to specification

Maintainability—the degree to which a program is amenable to change

Integrity—the degree to which a program is impervious to outside attack

Usability—the degree to which a program is easy to use

Page 37: Slides chapters 21-23

37

Defect Removal EfficiencyDefect Removal Efficiency

DRE = E /(E + D)

E is the number of errors found before delivery of the software to the end-user D is the number of defects found after delivery.

Page 38: Slides chapters 21-23

38

Metrics for Small OrganizationsMetrics for Small Organizations time (hours or days) elapsed from the time a request is made

until evaluation is complete, tqueue. effort (person-hours) to perform the evaluation, Weval. time (hours or days) elapsed from completion of evaluation to

assignment of change order to personnel, teval. effort (person-hours) required to make the change, Wchange. time required (hours or days) to make the change, tchange. errors uncovered during work to make change, Echange. defects uncovered after change is released to the customer

base, Dchange.

time (hours or days) elapsed from the time a request is made until evaluation is complete, tqueue.

effort (person-hours) to perform the evaluation, Weval. time (hours or days) elapsed from completion of evaluation to

assignment of change order to personnel, teval. effort (person-hours) required to make the change, Wchange. time required (hours or days) to make the change, tchange. errors uncovered during work to make change, Echange. defects uncovered after change is released to the customer

base, Dchange.

Page 39: Slides chapters 21-23

39

Establishing a Metrics ProgramEstablishing a Metrics Program Identify your business goals. Identify what you want to know or learn. Identify your subgoals. Identify the entities and attributes related to your subgoals. Formalize your measurement goals. Identify quantifiable questions and the related indicators that you will

use to help you achieve your measurement goals. Identify the data elements that you will collect to construct the indicators

that help answer your questions. Define the measures to be used, and make these definitions

operational. Identify the actions that you will take to implement the measures. Prepare a plan for implementing the measures.

Identify your business goals. Identify what you want to know or learn. Identify your subgoals. Identify the entities and attributes related to your subgoals. Formalize your measurement goals. Identify quantifiable questions and the related indicators that you will

use to help you achieve your measurement goals. Identify the data elements that you will collect to construct the indicators

that help answer your questions. Define the measures to be used, and make these definitions

operational. Identify the actions that you will take to implement the measures. Prepare a plan for implementing the measures.

Page 40: Slides chapters 21-23

40

Chapter 23Estimation for Software

Projects

Chapter 23Estimation for Software

Projects

Software Engineering: A Practitioner’s Approach, 6th editionby Roger S. Pressman

Page 41: Slides chapters 21-23

41

Software Project Planning

The overall goal of project planning is to The overall goal of project planning is to establish a pragmatic strategy for establish a pragmatic strategy for controlling, tracking, and monitoring a controlling, tracking, and monitoring a complex technical project.complex technical project.

Why?Why?

So the end result gets done on time, with So the end result gets done on time, with quality!quality!

Page 42: Slides chapters 21-23

42

Project Planning Task Set-IProject Planning Task Set-I

Establish project scope Determine feasibility Analyze risks Define required resources

Determine require human resources Define reusable software resources Identify environmental resources

Establish project scope Determine feasibility Analyze risks Define required resources

Determine require human resources Define reusable software resources Identify environmental resources

Page 43: Slides chapters 21-23

43

Project Planning Task Set-IIProject Planning Task Set-II Estimate cost and effort

Decompose the problem Develop two or more estimates using size, function points,

process tasks or use-cases Reconcile the estimates

Develop a project schedule Establish a meaningful task set Define a task network Use scheduling tools to develop a timeline chart Define schedule tracking mechanisms

Estimate cost and effort Decompose the problem Develop two or more estimates using size, function points,

process tasks or use-cases Reconcile the estimates

Develop a project schedule Establish a meaningful task set Define a task network Use scheduling tools to develop a timeline chart Define schedule tracking mechanisms

Page 44: Slides chapters 21-23

44

EstimationEstimation Estimation of resources, cost, and schedule for a

software engineering effort requires experience access to good historical information (metrics the courage to commit to quantitative predictions

when qualitative information is all that exists Estimation carries inherent risk and this risk leads to

uncertainty

Estimation of resources, cost, and schedule for a software engineering effort requires experience access to good historical information (metrics the courage to commit to quantitative predictions

when qualitative information is all that exists Estimation carries inherent risk and this risk leads to

uncertainty

Page 45: Slides chapters 21-23

45

Write it Down!Write it Down!

SoftwareSoftwareProjectProject

PlanPlan

Project ScopeProject ScopeEstimatesEstimatesRisksRisksScheduleScheduleControl strategyControl strategy

Page 46: Slides chapters 21-23

46

To Understand Scope ...To Understand Scope ...

Understand the customers needs understand the business context understand the project boundaries understand the customer’s motivation understand the likely paths for change understand that ...

Understand the customers needs understand the business context understand the project boundaries understand the customer’s motivation understand the likely paths for change understand that ...

Even when you understand,Even when you understand,nothing is guaranteed!nothing is guaranteed!

Page 47: Slides chapters 21-23

47

What is Scope?What is Scope? Software scope describes

the functions and features that are to be delivered to end-users the data that are input and output the “content” that is presented to users as a consequence of

using the software the performance, constraints, interfaces, and reliability that

bound the system. Scope is defined using one of two techniques:

A narrative description of software scope is developed after communication with all stakeholders.

A set of use-cases is developed by end-users.

Software scope describes the functions and features that are to be delivered to end-users the data that are input and output the “content” that is presented to users as a consequence of

using the software the performance, constraints, interfaces, and reliability that

bound the system. Scope is defined using one of two techniques:

A narrative description of software scope is developed after communication with all stakeholders.

A set of use-cases is developed by end-users.

Page 48: Slides chapters 21-23

48

ResourcesResources

project

people

skills

number

location

reusable software

OTS components

full-experience components

new components

part.-experience components

environment

hardware

software tools

network resources

Page 49: Slides chapters 21-23

49

Project EstimationProject Estimation Project scope must be understood Elaboration (decomposition) is

necessary Historical metrics are very helpful At least two different techniques

should be used Uncertainty is inherent in the process

Project scope must be understood Elaboration (decomposition) is

necessary Historical metrics are very helpful At least two different techniques

should be used Uncertainty is inherent in the process

Page 50: Slides chapters 21-23

50

Estimation TechniquesEstimation Techniques

Past (similar) project experience Conventional estimation techniques

task breakdown and effort estimates size (e.g., FP) estimates

Empirical models Automated tools

Past (similar) project experience Conventional estimation techniques

task breakdown and effort estimates size (e.g., FP) estimates

Empirical models Automated tools

Page 51: Slides chapters 21-23

51

Estimation AccuracyEstimation Accuracy Predicated on …

the degree to which the planner has properly estimated the size of the product to be built

the ability to translate the size estimate into human effort, calendar time, and dollars (a function of the availability of reliable software metrics from past projects)

the degree to which the project plan reflects the abilities of the software team

the stability of product requirements and the environment that supports the software engineering effort.

Predicated on … the degree to which the planner has properly estimated the

size of the product to be built the ability to translate the size estimate into human effort,

calendar time, and dollars (a function of the availability of reliable software metrics from past projects)

the degree to which the project plan reflects the abilities of the software team

the stability of product requirements and the environment that supports the software engineering effort.

Page 52: Slides chapters 21-23

52

Functional Decomposition

functional functional decompositiondecomposition

StatementStatementofof

ScopeScope Perform a Perform a Grammatical “parse”Grammatical “parse”

Page 53: Slides chapters 21-23

53

Conventional Methods:LOC/FP Approach

compute LOC/FP using estimates of information domain values

use historical data to build estimates for the project

Page 54: Slides chapters 21-23

54

Process-Based Estimation

Obtained from “process framework”Obtained from “process framework”

applicationapplicationfunctionsfunctions

framework activitiesframework activities

Effort required to Effort required to accomplishaccomplisheach framework each framework activity for each activity for each application functionapplication function

Page 55: Slides chapters 21-23

55

Process-Based Estimation ExampleProcess-Based Estimation Example

Activity

Task

Function

UICF2DGA3DGA

DSMPCF

CGDF

DAM

Totals

% effort

CC PlanningRisk

Analysis EngineeringConstruction

Release TotalsCE

analysis design code test

0.25 0.25 0.25 3.50 20.50 4.50 16.50 46.00

1% 1% 1% 8% 45% 10% 36%

CC = customer communication CE = customer evaluation

0.50

0.750.500.50

0.500.25

2.50

4.004.003.00

3.002.00

0.40

0.601.001.00

0.750.50

5.002.003.001.501.501.50

8.40

7.358.506.00

5.754.25

0.50 2.00 0.50 2.00 5.00

n/an/an/an/an/an/an/a

Based on an average burdened labor rate of $8,000 per Based on an average burdened labor rate of $8,000 per month, the total estimated project cost is $368,000 and the month, the total estimated project cost is $368,000 and the estimated effort is 46 person-months.estimated effort is 46 person-months.

Page 56: Slides chapters 21-23

56

Tool-Based Estimation

project characteristicsproject characteristics

calibration factorscalibration factors

LOC/FP dataLOC/FP data

Page 57: Slides chapters 21-23

57

Estimation with Use-CasesEstimation with Use-Casesuse cases scenarios pages Ź scenarios pages LOC LOC estimate

e subsystem 6 10 6 Ź 12 5 560 3,366subsystem group 10 20 8 Ź 16 8 3100 31,233e subsystem group 5 6 5 Ź 10 6 1650 7,970

Ź Ź Ź Źstimate Ź Ź Ź Ź 42,568

User interface subsystem Engineering subsystem group Infrastructure subsystem group

Total LOC estimate

Using 620 LOC/pm as the average productivity for systems Using 620 LOC/pm as the average productivity for systems of this type and a burdened labor rate of $8000 per month, of this type and a burdened labor rate of $8000 per month, the cost per line of code is approximately $13. Based on the the cost per line of code is approximately $13. Based on the use-case estimate and the historical productivity data, the use-case estimate and the historical productivity data, the total estimated project cost is $552,000 and the estimated total estimated project cost is $552,000 and the estimated effort is 68 person-months.effort is 68 person-months.

Page 58: Slides chapters 21-23

58

Empirical Estimation Models

General form:General form:

effort = tuning coefficient * sizeeffort = tuning coefficient * sizeexponentexponent

usually derivedusually derivedas person-monthsas person-monthsof effort requiredof effort required

either a constant oreither a constant ora number derived based a number derived based on complexity of projecton complexity of project

usually LOC butusually LOC butmay also bemay also befunction pointfunction point

empiricallyempiricallyderivedderived

Page 59: Slides chapters 21-23

59

COCOMO-IICOCOMO-II COCOMO II is actually a hierarchy of estimation models that

address the following areas: Application composition model. Used during the early stages

of software engineering, when prototyping of user interfaces, consideration of software and system interaction, assessment of performance, and evaluation of technology maturity are paramount.

Early design stage model. Used once requirements have been stabilized and basic software architecture has been established.

Post-architecture-stage model. Used during the construction of the software.

COCOMO II is actually a hierarchy of estimation models that address the following areas: Application composition model. Used during the early stages

of software engineering, when prototyping of user interfaces, consideration of software and system interaction, assessment of performance, and evaluation of technology maturity are paramount.

Early design stage model. Used once requirements have been stabilized and basic software architecture has been established.

Post-architecture-stage model. Used during the construction of the software.

Page 60: Slides chapters 21-23

60

The Software EquationThe Software EquationA dynamic multivariable modelA dynamic multivariable model

E = [LOC x BE = [LOC x B0.3330.333/P]/P]33 x (1/t x (1/t44))

where where E = effort in person-months or person-yearsE = effort in person-months or person-yearst = project duration in months or yearst = project duration in months or yearsB = “special skills factor”B = “special skills factor”P = “productivity parameter”P = “productivity parameter”

Page 61: Slides chapters 21-23

61

Estimation for OO Projects-IEstimation for OO Projects-I Develop estimates using effort decomposition, FP analysis, and

any other method that is applicable for conventional applications. Using object-oriented analysis modeling (Chapter 8), develop

use-cases and determine a count. From the analysis model, determine the number of key classes

(called analysis classes in Chapter 8). Categorize the type of interface for the application and develop a

multiplier for support classes: Interface type Multiplier No GUI 2.0 Text-based user interface 2.25 GUI 2.5 Complex GUI 3.0

Develop estimates using effort decomposition, FP analysis, and any other method that is applicable for conventional applications.

Using object-oriented analysis modeling (Chapter 8), develop use-cases and determine a count.

From the analysis model, determine the number of key classes (called analysis classes in Chapter 8).

Categorize the type of interface for the application and develop a multiplier for support classes: Interface type Multiplier No GUI 2.0 Text-based user interface 2.25 GUI 2.5 Complex GUI 3.0

Page 62: Slides chapters 21-23

62

Estimation for OO Projects-IIEstimation for OO Projects-II Multiply the number of key classes (step 3) by the

multiplier to obtain an estimate for the number of support classes.

Multiply the total number of classes (key + support) by the average number of work-units per class. Lorenz and Kidd suggest 15 to 20 person-days per class.

Cross check the class-based estimate by multiplying the average number of work-units per use-case

Multiply the number of key classes (step 3) by the multiplier to obtain an estimate for the number of support classes.

Multiply the total number of classes (key + support) by the average number of work-units per class. Lorenz and Kidd suggest 15 to 20 person-days per class.

Cross check the class-based estimate by multiplying the average number of work-units per use-case

Page 63: Slides chapters 21-23

63

Estimation for Agile ProjectsEstimation for Agile Projects Each user scenario (a mini-use-case) is considered separately for

estimation purposes. The scenario is decomposed into the set of software engineering tasks

that will be required to develop it. Each task is estimated separately. Note: estimation can be based on

historical data, an empirical model, or “experience.” Alternatively, the ‘volume’ of the scenario can be estimated in LOC, FP or

some other volume-oriented measure (e.g., use-case count). Estimates for each task are summed to create an estimate for the

scenario. Alternatively, the volume estimate for the scenario is translated into effort

using historical data. The effort estimates for all scenarios that are to be implemented for a

given software increment are summed to develop the effort estimate for the increment.

Each user scenario (a mini-use-case) is considered separately for estimation purposes.

The scenario is decomposed into the set of software engineering tasks that will be required to develop it.

Each task is estimated separately. Note: estimation can be based on historical data, an empirical model, or “experience.” Alternatively, the ‘volume’ of the scenario can be estimated in LOC, FP or

some other volume-oriented measure (e.g., use-case count). Estimates for each task are summed to create an estimate for the

scenario. Alternatively, the volume estimate for the scenario is translated into effort

using historical data. The effort estimates for all scenarios that are to be implemented for a

given software increment are summed to develop the effort estimate for the increment.

Page 64: Slides chapters 21-23

64

The Make-Buy Decision

system Xsystem Xreusereuse

simple (0.30)simple (0.30)

difficult (0.70)difficult (0.70)

minorminor changeschanges

(0.40)(0.40)

majormajorchangeschanges

(0.60)(0.60)

simple (0.20)simple (0.20)

complex (0.80)complex (0.80)

majormajor changeschanges (0.30)(0.30)

minorminor changeschanges

(0.70)(0.70)

$380,000$380,000

$450,000$450,000

$275,000$275,000

$310,000$310,000

$490,000$490,000

$210,000$210,000

$400,000$400,000

buybuy

contractcontract

without changes (0.60)without changes (0.60)

with changes (0.40)with changes (0.40)

$350,000$350,000

$500,000$500,000

buildbuild

Page 65: Slides chapters 21-23

65

Computing Expected CostComputing Expected Cost

((path probability) x (estimated path cost) path probability) x (estimated path cost) ii ii

For example, the expected cost to build is:For example, the expected cost to build is:

expected cost = 0.30 ($380K) + 0.70 ($450K) expected cost = 0.30 ($380K) + 0.70 ($450K)

similarly,similarly,

expected cost = expected cost = $382K$382Kexpected cost = expected cost = $267K$267Kexpected cost = expected cost = $410K$410K

buildbuild

reureusesebubuyyconcontrtr

expected cost =expected cost =

= $429 = $429 KK