Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CK Design Metrics Review

CK Design Metrics Review

Sudhir Mishra

November 17, 2015
Tweet

More Decks by Sudhir Mishra

Other Decks in Technology

Transcript

  1. Weighted Methods Per Class ▪ Number of methods in each

    class, weighted by the complexity of each.
  2. App

  3. Weighted Methods Per Class ▪ The larger the value, the

    greater the complexity. ▪ Threshold: 0-15 ▪ N Li8 App: 10.234 (is a little above half of the accepted threshold of 15) ▪ Objective: Low
  4. Depth of Inheritance Tree ▪ Number of discrete levels in

    the inheritance tree. ▪ DIT = 4.14 (mean)
  5. Depth of Inheritance Tree ▪ The larger the value, the

    greater the complexity. ▪ Threshold: 0 - 6 ▪ N LI8 = 4.149 ▪ ▪Objective: Trade-off
  6. App

  7. Number of Children ▪ The larger the value, ▪ The

    greater the RE-USE. ▪ The more difficult is to TEST. ▪ Threshold: 0 - 6 ▪ N Li8 : 0.47 (mean) ▪ Objective: Trade-off
  8. Coupling Between Object Classes ▪ Small values of CBO Improve

    MODULARITY and promote ENCAPSULATION ▪ Threshold: 0 - 8 ▪ N Li8: 6.95(mean) ▪ Objective: Low
  9. App

  10. Lack of Cohesion in Methods ▪ Difference between number of

    method pairs without shared attributes vs. number of method pairs with shared attributes ▪ LCOM = 0.228 (mean)
  11. App

  12. N Li8 - In a nutshell Metric N LI8 Value

    N LI8 WMC Low Not at all complex DIT Medium More reusable components NOC Medium Slightly difficult to test. CBO Medium Moderately modular not very dependent RFC Medium Testing and maintenance is good. LCOM Low Not so complex,good Encapsulation.