AWB Presentation Template

Total Page:16

File Type:pdf, Size:1020Kb

AWB Presentation Template

CS511 PSP plus Project

PROBE Size Estimation Walkthrough CS511w04 Feb 18, 2004

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–1 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough PROBE Size Estimating Walkthrough Watts' PSP LOC & OLOC counters  Assumption/constraint:  One physical line = one logical LOC  Coding standard followed to assure 1-1  Simplifying assumptions  No blank lines or comments counted  Special comment lines delimit "Objects" and ID category  Special comment lines preceed "methods"  LOC Counter has been done [like A2]  UML domain model (conceptual design) for LOC counter Task for walkthrough: Estimate the changes necessary to convert the LOC counter to an Object LOC counter

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–2 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough  Add new attributes  Add new operations (AKA methods)

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–3 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough LOC Counter & Object LOC Counter

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–4 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough

500 Lines of Code

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–5 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough Object & Method LOC Counter

Object Delimiter: "/*Start-Object */" Method Delimiter: "/*Method */" New Objects or Methods:  Program: I/O; 1 new method [Summarize – format output]  Object: Text-type; 3 methods  Method: Text-type; 3 methods

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–6 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough  Object/Method Delimiter: Text-type; 2 methods

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–7 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough PSP Size Estimating Template Student Class Date 11/21 Instructor Winsor Brown Prog. # 13 BASE PROGRAM LOC BASE SIZE (B) => => => => => => => 500 LOC DELETED (D) => => => => => => 150 LOC MODIFIED (M) => => => => => => 40 PROJECTED LOC BASE TYPE METHOD REL. LOC ADDITIONS: S SIZE Prog: I/O 1 Small 12 Summarize Main Data 1 Medium 9

TOTAL BASE ADDITIONS (BA) => => =>

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–8 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough Size Ranges for Proxy Types (LOC/Method)

Size Ranges for C++ Object Types (LOC/Method)

Category Very Small Medium Large Very Small Large Calc. 2.34 5.13 11.25 24.66 54.04 Data 2.60 4.79 8.84 16.31 30.09 I/O 9.01 12.06 16.15 21.62 28.93 Logic 7.55 10.98 15.98 23.25 33.83 Setup 3.88 5.04 6.55 8.53 11.09 Text 3.75 8.00 17.07 36.41 77.66

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–9 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough PSP Size Estimating Template (cont.) PROJECTED LOC (cont.) NEW TYPE1 METHOD REL. LOC OBJECTS: S SIZE (NewReuse*) Object Text 3 Medium 3x17 = 51 Method Text 3 Medium 3x17 = 51* Obj/M Text 2 Very 2x3.75 = 7.5 Delimiter Small

TOTAL NEW OBJECTS (NO) => => => 109.5 REUSED PROGRAMS LOC Line 130 Countable 35 Comment 25

1 L=Logic, I=I/O, C=Calculation, T=Text, D=Data, S=Set-up © 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–10 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough Token 57 REUSED TOTAL (R) => => => => => => 247

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–11 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough Size Estimation: Regression Actual vs. Est. Prog 1 2 3 4 5 6 7 8 9 10 Su Avg # m . E 13 65 99 15 12 30 95 945 36 961 382 382 LoC 0 0 0 8 2 8 8 .8 A 18 69 13 27 29 33 19 189 78 160 638 638 LoC 6 9 2 2 1 1 9 0 8 1 9 .9

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–12 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough

0= -22.5 2000 1800 1=1.73 1600 1400 1200 1000 800 600 Actual Program LOC 400 200 0 0 200 400 600 800 1000 1200

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–13 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough PSP Size Estimating Template (cont.)

Projected LOC: E = BA+NO+M 170.5

Regression Parameter: 0 -22.5

Regression Parameter: 1 1.73

Estimated New and Changed LOC: N = 0 + 272

1*(E) Estimated Total LOC: T = N + B - D - M + R 829 Estimated Total New Reused (sum of * LOC): 51 Prediction Range: within which __% will likely fall Upper Prediction Interval: UPI = N + Range Lower Prediction Interval: LPI = N – Range Prediction Interval Percent: % AKA  /2 2 2 Range=t(/2,n-2)  (1+1/n+((xk-xavg) / (xi-xavg) ) E = BA+NO+M =109.5+21+40

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–14 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough N=-22.5+1.73x(170.5)=272.465 T=N+B-D-M+R=272+500-150-40+247=829

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–15 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough PSP's PROBE Assisted by Spreadsheets On PSP Size Estimating Template  Enter  BASE PROGRAM information  Projected LOC information  Base Additions  New Objects  Re-used Programs  Calculations (using spreadsheets)  Do the simple math  Rely on Linear Regression spreadsheet (or LINEST) for s  Rely on Prediction Interval spreadsheet for PI ranges

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–16 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough PSP Size Estimating Template Student Date Instructor Program# BASE PROGRAM LOC BASE SIZE (B) => => => => => => => LOC DELETED (D) => => => => => => LOC MODIFIED (M) => => => => => => PROJECTED LOC BASE TYPE METHOD REL. LOC ADDITIONS: S SIZE

TOTAL BASE ADDITIONS (BA) => => =>

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–17 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough PSP Size Estimating Template (cont.) PROJECTED LOC (cont.) NEW TYPE2 METHOD REL. LOC OBJECTS: S SIZE (NewReuse*)

TOTAL NEW OBJECTS (NO) => => => REUSED PROGRAMS LOC

2 L=Logic, I=I/O, C=Calculation, T=Text, D=Data, S=Set-up © 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–18 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough

REUSED TOTAL (R) => => => => => =>

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–19 v0.0 - 04/26/18 CS511 PSP plus Project – PROBE Size Estimation Walkthrough PSP Size Estimating Template (cont.)

Projected LOC: E = BA+NO+M

Regression Parameter: 0

Regression Parameter: 1

Estimated New and Changed LOC: N = 0 +

1*(E) Estimated Total LOC: T = N + B - D - M + R Estimated Total New Reused (sum of * LOC): Prediction Range: Range Upper Prediction Interval: UPI = N + Range Lower Prediction Interval: LPI = N – Range Prediction Interval Percent:

© 2018 A. Winsor Brown BES/MSEE, JP Alstad 09c76070f50a73ed21e111a37e7315bc.doc–20 v0.0 - 04/26/18

Recommended publications