1 / 10

The MOOD Set of Object-Oriented Software Metrics

The MOOD Set of Object-Oriented Software Metrics. Visibility. Is_visible(M,C) 1 iff class C may call method M and M is in another class – I.e. public 0 otherwise V(M) = sum of Is_visible for method M over all classes divided by number of other classes

Download Presentation

The MOOD Set of Object-Oriented Software Metrics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The MOOD Set of Object-Oriented Software Metrics

  2. Visibility • Is_visible(M,C) • 1 iff class C may call method M and M is in another class – I.e. public • 0 otherwise • V(M) = sum of Is_visible for method M over all classes divided by number of other classes • percentage of other classes that can call this method

  3. MHF definition • Summation over all methods in all classes of 1 minus the V(M) divided by the total number of methods

  4. Model for MHF? • What would be a good abstraction? • Is there a well-understood Empirical Relationship? • Scale Type?

  5. Inheritance Factor Md(Ci) = number of methods declared in a class i Mi(Ci) = number of methods inherited (and not overridden) in a class i Ma(Ci) = Md(Ci) + Mi(C i) = number of methods that can be invoked in association with class i

  6. Model for MIF? • What would be a good abstraction? • Is there a well-understood Empirical Relationship? • Scale Type?

  7. Coupling Factor

  8. Model for CF? • What would be a good abstraction? • Is there a well-understood Empirical Relationship? • Scale Type?

  9. Polymorphism Factor Let Mo(Ci) be the number of overriding methods in class i. Let Mn(Ci) be the number of new methods in class i. Let DC(Ci) be the number of descendants of class i.

  10. Model for PF? • What would be a good abstraction? • Is there a well-understood Empirical Relationship? • Scale Type?

More Related