Project Estimation With Use Case Points
Project Estimation With Use Case Points
Introduction
Object-oriented applications frequently rely on Use Cases to describe the business processes of a software application. Since use cases consist of the strategic goals and scenarios that provide value to a business domain, they can also provide insight into an applications complexity. Deriving a reliable estimate of the size and effort an application needs, is possible by examining the actors and scenarios of a use case. Use Case Points is a project estimation method that employs a projects use cases to produce an accurate estimate of a projects size and effort.
The number of steps to complete the use case. The number and complexity of the actors. The technical requirements of the use case such as concurrency, security and performance. Various environmental factors such as the development teams experience and knowledge.
Use Case Points (UCP) is an estimation method that provides the ability to estimate an applications size and effort from its use cases. Based on work by Gustav Karner in 1993, UCP analyzes the use case actors, scenarios and various technical and environmental factors and abstracts them into an equation. The equation is composed of four variables: 1. 2. 3. 4. Technical Complexity Factor (TCF). Environment Complexity Factor (ECF). Unadjusted Use Case Points (UUCP). Productivity Factor (PF).
Each variable is defined and computed separately, using perceived values and various constants. The complete equation is: Collapse | Copy Code
UCP = TCP * ECF * UUCP * PF
The necessary steps to generate the estimate based on the UCP method are: 1. 2. 3. 4. 5. Determine and compute the Technical Factors. Determine and compute the Environmental Factors. Compute the Unadjusted Use Case Points. Determine the Productivity Factor. Compute the product of the variables.
Provides direct access 1 for third parties Special user training facilities are required 1
For each project, the technical factors are evaluated by the development team and assigned a value from 0 to 5 according to their perceived complexity multithreaded apps. require more skill and time than single threaded applications, for example, as do reusable apps. A perceived complexity of 0 means the technical factor is irrelevant for this project; 3 is average; 5 means it has strong influence. Each factors weight is multiplied by its perceived complexity to produce its calculated factor. The calculated factors are summed to produce the Total Factor. So, using sample perceived complexity values, the Technical Total Factor might be computed as follows: Technical Description Factor T1 T2 T3 T4 T5 T6 T7 T8 T9 T10 T11 T12 T13 Distributed System Performance End User Efficiency Complex internal Processing Reusability Easy to install Easy to use Portable Easy to change Concurrent Special security features Provides direct access for third parties Special user training facilities are required Weight Perceived Complexity 5 4 2 4 2 5 3 3 3 2 2 5 3 Total Factor Figure 2: Calculating the Technical Total Factor. In Figure 2, the Total Factor is 47 derived by summing all the calculated factors. To produce the final TCF, two constants are computed with the Total Factor. The complete formula to compute the TCF is as follows: Collapse | Copy Code
TCF = 0.6 + (.01*Total Factor). For Figure 1, the TCF = 1.07
2 1 1 1 1 0.5 0.5 2 1 1 1 1 1
Figure 3: Example Environmental Factors. Each factors weight is multiplied by its perceived complexity to produce its calculated factor. The calculated factors are summed to produce the Total Factor. Using sample values for perceived impact, the Environmental Total Factor might be computed as: Environmental Factor Description Weight Perceived Calculated Factor Impact (weight*perceived complexity) 4 6 2 5 2 1 5 0 1 1 5 1 1 10 0 2
E1 E2 E3 E4 E5 E6 E7 E8
Familiarity with UML Application Experience Lead analyst capability Motivation Stable Requirements Part-time workers Difficult Programming language
26
In Figure 4, the Total Factor is 26 derived by summing all the calculated factors. To produce the final ECF, two constants are computed with the Total Factor. The complete formula to compute the ECF is as follows: Collapse | Copy Code
ECF = 1.4 + (-0.03*Total Factor). For Figure 4, the ECF = 0.62
Average
More interface design and touches 2 or more 10 database entities; between 4 to 7 steps; its implementation involves between 5 to 10 classes. Involves a complex user interface or 15 processing and touches 3 or more database entities; over seven steps; its implementation involves more than 10 classes.
Complex
Figure 5: Use Case Categories. The UUCW is computed by counting the number of use cases in each category, multiplying each category of use case with its weight and adding the products.
Description
Result 40
A simple user interface and touches 5 only a single database entity; its success scenario has 3 steps or less; its implementation involves less than 5 classes. More interface design and touches 2 10 or more database entities; between 4 to 7 steps; its implementation involves between 5 to 10 classes. Involves a complex user interface or 15 processing and touches 3 or more database entities; over seven steps; its implementation involves more than 10 classes.
Average
12
120
Complex
60
220
In a similar manner, the Actors are classified as Simple, Average or Complex based on their interactions. Actor Type Simple Average Description The Actor represents another system with a defined API. The Actor represents another system interacting through a protocol, like TCP/IP. Weight 1 2
Complex
Figure 7: Actor Classifications. The UAW is calculated by counting the number of actors in each category, multiplying each total by its specified weighting factor, and then adding the products. Actor Type Simple Description The Actor represents another system with a Weight 1 Number of Actors 8 Result 8
defined API Average The Actor represents 2 another system interacting through a protocol, like TCP/IP The Actor is a person interacting via an interface. 3 12 24
Complex
12
44
Finally, the UUCP is computed by adding the UUCW and the UAW. For the sample data used in the figures, the UUCP = 220 + 44 = 264.
Productivity Factor
The Productivity Factor (PF) is a ratio of the number of man hours per use case point based on past projects. If no historical data has been collected, a figure between 15 and 30 is suggested by industry experts. A typical value is 20.
Final Calculation
The Use Case Points is determined by multiplying all the variables: Collapse | Copy Code
UCP = TCP * ECF * UUCP * PF
For the sample values used in this article: UCP = 1.07 * 0.62 * 264 * 20 = 3502.752 or 3503 hours. Dividing the UCP by 40 hours (for one man work week) = 88 man-weeks. Therefore, for the sample values in this article, it would take one developer 88 weeks (or about 22 months) to complete the application.
Caveats
The Use Case Points estimate tends to be high when compared to human experts. This might be a good thing since many software projects are late, but, the estimate may still be too high. In order to produce accurate results, the variables in the equation need to be adjusted and tweaked especially in the beginning.
The number of steps in a scenario affects the estimate. A large number of steps in a use case scenario will bias the result towards complexity and increase the Use Case Points. A small number of steps will bias it towards simplicity. Sometimes, groups of steps can be reduced to a fewer number without sacrificing the business process. Strive for a uniform level of detail but dont force a use case to conform to the estimation method. Including and extending use cases increases the complexity. Count these as a single use case. The number of actors in a use case also affects the estimate. If possible, generalize the actors into a single superactor. This reduces the complexity without affecting the use case. On the other hand, dont force a generalization where none exists. The values for the Technical and Environmental Factors need to be adjusted over time as actual data is obtained. The more projects that employ Use Case Points for their estimations will yield more accurate values for the perceived values. Compare the Use Case Point estimate with a human experts estimate. Where there is disagreement, err on the side of the human expert and adjust the Use Case Point factors accordingly. The Productivity Factor can only be obtained over time. Track the time spent designing and implementing the use cases and adjust the Productivity Factor accordingly.
Conclusion
Use Case Points have the potential to produce reliable results because its estimates are produced from the actual business processes the use cases - of a software application. Additionally, in many traditional estimation methods, influential technical and environmental factors are often not adequately given enough consideration. Use Case Points includes and abstracts these subjective factors into an equation. When tweaked, over time, Use Case Points can provide estimates that are very reliable.