-
Notifications
You must be signed in to change notification settings - Fork 0
/
table.html
569 lines (558 loc) · 16.8 KB
/
table.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title>table</title><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></head><body><br>
By default SLOCCount uses a very simple estimating model for effort and schedule:
the basic COCOMO model in the "organic" mode (see below for more about this).
This model estimates effort and schedule, including design, code, test,
and documentation time (both user/admin documentation and development documentation).
Basic COCOMO is a nice simple model, and it's used as the default because
it doesn't require any information about the code other than the SLOC count
already computed.<br>
<br>
However, basic COCOMO's accuracy is limited in part for the same reason -
basic COCOMO doesn't take a number of important factors into account.<br>
If you have the necessary information, you can improve the model's accuracy
by taking these factors into account. You can at least quickly determine
if the right "mode" is being used to improve accuracy. You can also
use the "Intermediate COCOMO" and "Detailed COCOMO" models that take more
factors into account, and are likely to produce more accurate estimates as
a result. Take these estimates as just that - estimates - they're not grand
truths.<br>
<br>
To use the COCOMO model, you first need to determine if your application's
mode, which can be "Organic", "embedded", or "semidetached". Most software
is "organic" (which is why it's the default). Here are simple definitions
of these modes:<br>
<ul>
<li>Organic: Relatively small software teams develop software in a highly
familiar, in-house environment. It has a generally stable development
environment, minimal need for innovative algorithms, and requirements can
be relaxed to avoid extensive rework.</li><li>Semidetached: This is an intermediate
step between organic and embedded. This is generally characterized by reduced
flexibility in the requirements.</li><li>Embedded: The project must operate
within tight (hard-to-meet) constraints, and requirements and interface specifications
are often non-negotiable. The software will be embedded in a complex environment that the software must deal with as-is.<br>
</li>
</ul>
By default, SLOCCount uses the basic COCOMO model in the organic mode. For
the basic COCOMO model, here are the critical factors for --effort and --schedule:<br>
<ul>
<li>Organic: effort factor = 2.4, exponent = 1.05; schedule factor = 2.5, exponent = 0.38</li><li>Semidetached: effort factor = 3.0, exponent = 1.12; schedule factor = 2.5, exponent = 0.35</li><li>Embedded: effort factor = 3.6, exponent = 1.20; schedule factor = 2.5, exponent = 0.32<br>
</li>
</ul>
Thus, if you want to use sloccount but the project is actually semidetached,
you can use "--effort 3.0 1.12 --schedule 2.5 0.35" as options to sloccount
to get a more accurate estimate.<br>
<br>
For more accurate estimates, you can use the intermediate COCOMO models.
For intermediate COCOMO, use the following figures:<br>
<ul>
<li>Organic: effort base factor = 2.3, exponent = 1.05; schedule factor = 2.5, exponent = 0.38</li>
<li>Semidetached: effort base factor = 3.0, exponent = 1.12; schedule factor = 2.5, exponent = 0.35</li>
<li>Embedded: effort base factor = 2.8, exponent = 1.20; schedule factor = 2.5, exponent = 0.32<br>
</li>
</ul>
The intermediate COCOMO values for schedule are exactly the same as the basic
COCOMO model; the starting effort values are not quite the same, as discussed
in Boehm's book. However, in the intermediate COCOMO model, you don't
normally use the effort factors as-is, you use various corrective factors
(called cost drivers). To use these corrections, you then consider
all the cost drivers, and multiply them by the effort base factor, to determine
the final effort factor. Here are the cost drivers (from Boehm's book,
table 8-2 and 8-3):<br>
<br>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top" rowspan="1" colspan="2">Cost Drivers<br>
</td>
<td valign="top" rowspan="1" colspan="6">Ratings<br>
</td>
</tr>
<tr>
<td valign="top">ID<br>
</td>
<td valign="top">Driver Name<br>
</td>
<td valign="top">Very Low<br>
</td>
<td valign="top">Low<br>
</td>
<td valign="top">Nominal<br>
</td>
<td valign="top">High<br>
</td>
<td valign="top">Very High<br>
</td>
<td valign="top">Extra High<br>
</td>
</tr>
<tr>
<td valign="top">RELY<br>
</td>
<td valign="top">Required software reliability<br>
</td>
<td valign="top">0.75 (effect is slight inconvenience)<br>
</td>
<td valign="top">0.88 (easily recovered losses)<br>
</td>
<td valign="top">1.00 (recoverable losses)<br>
</td>
<td valign="top">1.15 (high financial loss)<br>
</td>
<td valign="top">1.40 (risk to human life)<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">DATA<br>
</td>
<td valign="top">Database size<br>
</td>
<td valign="top"><br>
</td>
<td valign="top">0.94 (database bytes/SLOC < 10)<br>
</td>
<td valign="top">1.00 (D/S between 10 and 100)<br>
</td>
<td valign="top">1.08 (D/S between 100 and 1000)<br>
</td>
<td valign="top">1.16 (D/S > 1000)<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">CPLX<br>
</td>
<td valign="top">Product complexity<br>
</td>
<td valign="top">0.70 (mostly straightline code, simple arrays, simple expressions)<br>
</td>
<td valign="top">0.85<br>
</td>
<td valign="top">1.00<br>
</td>
<td valign="top">1.15<br>
</td>
<td valign="top">1.30<br>
</td>
<td valign="top">1.65 (microcode, multiple resource scheduling, device timing dependent coding)<br>
</td>
</tr>
<tr>
<td valign="top">TIME<br>
</td>
<td valign="top">Execution time constraint<br>
</td>
<td valign="top"><br>
</td>
<td valign="top"><br>
</td>
<td valign="top">1.00 (<50% use of available execution time)<br>
</td>
<td valign="top">1.11 (70% use)<br>
</td>
<td valign="top">1.30 (85% use)<br>
</td>
<td valign="top">1.66 (95% use)<br>
</td>
</tr>
<tr>
<td valign="top">STOR<br>
</td>
<td valign="top">Main storage constraint<br>
</td>
<td valign="top"><br>
</td>
<td valign="top"><br>
</td>
<td valign="top">1.00 (<50% use of available storage)</td>
<td valign="top">1.06 (70% use)<br>
</td>
<td valign="top">1.21 (85% use)<br>
</td>
<td valign="top">1.56 (95% use)<br>
</td>
</tr>
<tr>
<td valign="top">VIRT<br>
</td>
<td valign="top">Virtual machine (HW and OS) volatility<br>
</td>
<td valign="top"><br>
</td>
<td valign="top">0.87 (major change every 12 months, minor every month)<br>
</td>
<td valign="top">1.00 (major change every 6 months, minor every 2 weeks)</td>
<td valign="top">1.15 (major change every 2 months, minor changes every week)<br>
</td>
<td valign="top">1.30 (major changes every 2 weeks, minor changes every 2 days)<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">TURN<br>
</td>
<td valign="top">Computer turnaround time<br>
</td>
<td valign="top"><br>
</td>
<td valign="top">0.87 (interactive)<br>
</td>
<td valign="top">1.00 (average turnaround < 4 hours)<br>
</td>
<td valign="top">1.07<br>
</td>
<td valign="top">1.15<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">ACAP<br>
</td>
<td valign="top">Analyst capability<br>
</td>
<td valign="top">1.46 (15th percentile)<br>
</td>
<td valign="top">1.19 (35th percentile)<br>
</td>
<td valign="top">1.00 (55th percentile)<br>
</td>
<td valign="top">0.86 (75th percentile)<br>
</td>
<td valign="top">0.71 (90th percentile)<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">AEXP<br>
</td>
<td valign="top">Applications experience<br>
</td>
<td valign="top">1.29 (<= 4 months experience)<br>
</td>
<td valign="top">1.13 (1 year)<br>
</td>
<td valign="top">1.00 (3 years)<br>
</td>
<td valign="top">0.91 (6 years)<br>
</td>
<td valign="top">0.82 (12 years)<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">PCAP<br>
</td>
<td valign="top">Programmer capability<br>
</td>
<td valign="top">1.42 (15th percentile)<br>
</td>
<td valign="top">1.17 (35th percentile)<br>
</td>
<td valign="top">1.00 (55th percentile)<br>
</td>
<td valign="top">0.86 (75th percentile)<br>
</td>
<td valign="top">0.70 (90th percentile)<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">VEXP<br>
</td>
<td valign="top">Virtual machine experience<br>
</td>
<td valign="top">1.21 (<= 1 month experience)<br>
</td>
<td valign="top">1.10 (4 months)<br>
</td>
<td valign="top">1.00 (1 year)<br>
</td>
<td valign="top">0.90 (3 years)<br>
</td>
<td valign="top"><br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">LEXP<br>
</td>
<td valign="top">Programming language experience<br>
</td>
<td valign="top">1.14 (<= 1 month experience)<br>
</td>
<td valign="top">1.07 (4 months)<br>
</td>
<td valign="top">1.00 (1 year)<br>
</td>
<td valign="top">0.95 (3 years)<br>
</td>
<td valign="top"><br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">MODP<br>
</td>
<td valign="top">Use of "modern" programming practices (e.g. structured programming)<br>
</td>
<td valign="top">1.24 (No use)<br>
</td>
<td valign="top">1.10<br>
</td>
<td valign="top">1.00 (some use)<br>
</td>
<td valign="top">0.91<br>
</td>
<td valign="top">0.82 (routine use)<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">TOOL<br>
</td>
<td valign="top">Use of software tools<br>
</td>
<td valign="top">1.24<br>
</td>
<td valign="top">1.10<br>
</td>
<td valign="top">1.00 (basic tools)<br>
</td>
<td valign="top">0.91 (test tools)<br>
</td>
<td valign="top">0.83 (requirements, design, management, documentation tools)<br>
</td>
<td valign="top"><br>
</td>
</tr>
<tr>
<td valign="top">SCED<br>
</td>
<td valign="top">Required development schedule<br>
</td>
<td valign="top">1.23 (75% of nominal)<br>
</td>
<td valign="top">1.08 (85% of nominal)<br>
</td>
<td valign="top">1.00 (nominal)<br>
</td>
<td valign="top">1.04 (130% of nominal)<br>
</td>
<td valign="top">1.10 (160% of nominal)<br>
</td>
<td valign="top"><br>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<br>
So, once all of the factors have been multiplied together, you can
then use the "--effort" flag to set more accurate factors and exponents.<br>
<br>
For example, imagine that you're examining a fairly simple application that
meets the "organic" requirements. Organic projects have a base factor
of 2.3 and exponents of 1.05, as noted above. We then examine all the
factors to determine a corrected base factor. For this example, imagine
that we determine the values of these cost drivers are as follows:<br>
<br>
<table cellpadding="2" cellspacing="2" border="1" width="100%">
<tbody>
<tr>
<td valign="top" rowspan="1" colspan="2">Cost Drivers<br>
</td>
<td valign="top" rowspan="1" colspan="2">Ratings<br>
</td>
</tr>
<tr>
<td valign="top">ID<br>
</td>
<td valign="top">Driver Name<br>
</td>
<td valign="top">Rating<br>
</td>
<td valign="top">Multiplier<br>
</td>
</tr>
<tr>
<td valign="top">RELY<br>
</td>
<td valign="top">Required software reliability<br>
</td>
<td valign="top">Low - easily recovered losses<br>
</td>
<td valign="top">0.88<br>
</td>
</tr>
<tr>
<td valign="top">DATA<br>
</td>
<td valign="top">Database size<br>
</td>
<td valign="top">Low<br>
</td>
<td valign="top">0.94<br>
</td>
</tr>
<tr>
<td valign="top">CPLX<br>
</td>
<td valign="top">Product complexity<br>
</td>
<td valign="top">Nominal<br>
</td>
<td valign="top">1.00<br>
</td>
</tr>
<tr>
<td valign="top">TIME<br>
</td>
<td valign="top">Execution time constraint<br>
</td>
<td valign="top">Nominal<br>
</td>
<td valign="top">1.00<br>
</td>
</tr>
<tr>
<td valign="top">STOR<br>
</td>
<td valign="top">Main storage constraint<br>
</td>
<td valign="top">Nominal<br>
</td>
<td valign="top">1.00<br>
</td>
</tr>
<tr>
<td valign="top">VIRT<br>
</td>
<td valign="top">Virtual machine (HW and OS) volatility<br>
</td>
<td valign="top">Low (major change every 12 months, minor every month)<br>
</td>
<td valign="top">0.87<br>
</td>
</tr>
<tr>
<td valign="top">TURN<br>
</td>
<td valign="top">Computer turnaround time<br>
</td>
<td valign="top">Low (interactive)<br>
</td>
<td valign="top">0.87<br>
</td>
</tr>
<tr>
<td valign="top">ACAP<br>
</td>
<td valign="top">Analyst capability<br>
</td>
<td valign="top">Nominal (55th percentile)<br>
</td>
<td valign="top">1.00<br>
</td>
</tr>
<tr>
<td valign="top">AEXP<br>
</td>
<td valign="top">Applications experience<br>
</td>
<td valign="top">Nominal (3 years)<br>
</td>
<td valign="top">1.00<br>
</td>
</tr>
<tr>
<td valign="top">PCAP<br>
</td>
<td valign="top">Programmer capability<br>
</td>
<td valign="top">Nominal (55th percentile)<br>
</td>
<td valign="top">1.00<br>
</td>
</tr>
<tr>
<td valign="top">VEXP<br>
</td>
<td valign="top">Virtual machine experience<br>
</td>
<td valign="top">High (3 years)<br>
</td>
<td valign="top">0.90<br>
</td>
</tr>
<tr>
<td valign="top">LEXP<br>
</td>
<td valign="top">Programming language experience<br>
</td>
<td valign="top">High (3 years)<br>
</td>
<td valign="top">0.95<br>
</td>
</tr>
<tr>
<td valign="top">MODP<br>
</td>
<td valign="top">Use of "modern" programming practices (e.g. structured programming)<br>
</td>
<td valign="top">High (Routine use)<br>
</td>
<td valign="top">0.82<br>
</td>
</tr>
<tr>
<td valign="top">TOOL<br>
</td>
<td valign="top">Use of software tools<br>
</td>
<td valign="top">Nominal (basic tools)<br>
</td>
<td valign="top">1.00<br>
</td>
</tr>
<tr>
<td valign="top">SCED<br>
</td>
<td valign="top">Required development schedule<br>
</td>
<td valign="top">Nominal<br>
</td>
<td valign="top">1.00<br>
</td>
</tr>
</tbody>
</table>
<br>
By multiplying these driver values together in this example, we compute:<br>
<pre>0.88*0.94*1*1*1*0.87*0.87*1*1*1*0.90*0.95*0.82*1*1</pre>
The correction from these is 0.438964094, which you multiply by the base
factor (2.3 in this case) to determine a final effort factor. For this
example, the final factor for the effort calculation is 1.01. You would then
invoke sloccount with "--effort 1.01 1.05" to pass in the corrected factor
and exponent. You don't need to use "--schedule" to set the factors
(they default to the values for organic model), but you can set them manually
anyway by setting "--schedule 2.5 0.38". You <i>do</i> need to use the --schedule option for embedded and semidetached projects. The final command would be:<br>
<br>
sloccount --effort 1.01 1.05 --schedule 2.5 0.38 my_project<br>
<br>
<br>
<br>
<br>
<br>
<br>
</body></html>