Research Article
Incorporating transitive relations in low-level design-based class cohesion measurement
Article first published online: 27 APR 2012
DOI: 10.1002/spe.2127
Copyright © 2012 John Wiley & Sons, Ltd.
Additional Information
How to Cite
Al Dallal, J. (2013), Incorporating transitive relations in low-level design-based class cohesion measurement. Softw: Pract. Exper., 43: 685–704. doi: 10.1002/spe.2127
Publication History
- Issue published online: 8 MAY 2013
- Article first published online: 27 APR 2012
- Manuscript Accepted: 4 APR 2012
- Manuscript Revised: 28 MAR 2012
- Manuscript Received: 3 APR 2011
- Abstract
- Article
- References
- Cited By
Keywords:
- object-oriented design;
- class quality;
- class cohesion metric;
- method invocation;
- transitive cohesive relation;
- fault prediction
SUMMARY
Class cohesion metrics apply different approaches to quantify the relatedness of the attributes and methods in a class. These relations can be direct or transitive. Method invocations are among the key sources of potential transitive attribute–method relations. That is, a method is not only related to the attributes that it references, but it may also be transitively related to the attributes referenced by the methods that it invokes. A few of the existing class cohesion metrics capture this potential transitive cohesion aspect. In this paper, we classify the method invocations as direct or transitive. The definitions of the class representative models used by 16 existing low-level design (LLD) metrics are extended to incorporate the cohesion caused by the two types of method invocations. The impact of incorporating the transitive relations because of the two types of method invocations on the cohesion values and on the ability of the LLD metrics to predict faulty classes are studied empirically. The results show that the transitive relations because of both types of method invocations featured a considerable degree of cohesion that is not captured by most of the existing LLD metrics. However, practically, incorporating transitive relations in cohesion measurement was found to be ineffective in improving the fault-prediction powers of most of the LLD metrics. Copyright © 2012 John Wiley & Sons, Ltd.

1097-024X/asset/olbannerleft.jpg?v=1&s=2d7d001211f2c40f177a231141601e9f52afc1f3)
1097-024X/asset/olbannerright.jpg?v=1&s=3aec7891a8ba78b361ead9743adfc0b6eae6369a)
