CIS 375 SOFTWARE ENGINEERING
UNIVERSITY OF MICHIGAN-DEARBORN
DR. BRUCE MAXIM, INSTRUCTOR
Date: 12/1/97
Week 13
OBJECT-ORIENTED METRICS:
CLASS METRICS:
- CK metrics suite:
- Weighted Methods per class (WMC).
- Depth of inheritance tree (DIT).
- Number of children (NOC).
- Coupling between object classes (COB).
- Response for classes (RFC)
- Lack of cohesion in methods (LCOM)
- Lorenz & Kidd metrics:
- Class size (CS).
- # of operations overridden by subclass (NOO).
- # of operation added by subclass (NOA).
- SI = [NOO * level]/Mtotal # class methods.
OPERATION-ORIENTED METRICS:
- Average operation size (OSavg).
- Operation complexity (OC).
- Average # of parameters per operations (NPavg).
OPERATION-ORIENTED METHODS:
- Encapsulation:
- Inheritance: