DocumentCode :
1381962
Title :
Measuring the Discriminative Power of Object-Oriented Class Cohesion Metrics
Author :
Al Dallal, Jehad
Author_Institution :
Dept. of Inf. Sci., Kuwait Univ., Safat, Kuwait
Volume :
37
Issue :
6
fYear :
2011
Firstpage :
788
Lastpage :
804
Abstract :
Several object-oriented cohesion metrics have been proposed in the literature. These metrics aim to measure the relationship between class members, namely, methods and attributes. Different metrics use different models to represent the connectivity pattern of cohesive interactions (CPCI) between class members. Most of these metrics are normalized to allow for easy comparison of the cohesion of different classes. However, in some cases, these metrics obtain the same cohesion values for different classes that have the same number of methods and attributes but different CPCIs. This leads to incorrectly considering the classes to be the same in terms of cohesion, even though their CPCIs clearly indicate that the degrees of cohesion are different. We refer to this as a lack of discrimination anomaly (LDA) problem. In this paper, we list and discuss cases in which the LDA problem exists, as expressed through the use of 16 cohesion metrics. In addition, we empirically study the frequent occurrence of the LDA problem when the considered metrics are applied to classes in five open source Java systems. Finally, we propose a metric and a simulation-based methodology to measure the discriminative power of cohesion metrics. The discrimination metric measures the probability that a cohesion metric will produce distinct cohesion values for classes with the same number of attributes and methods but different CPCIs. A highly discriminating cohesion metric is more desirable because it exhibits a lower chance of incorrectly considering classes to be cohesively equal when they have different CPCIs.
Keywords :
Java; laser Doppler anemometry; object-oriented methods; public domain software; cohesive interactions; discrimination anomaly; discriminative power measurement; object oriented class cohesion metrics; open source Java systems; simulation based methodology; Object oriented modeling; Phase measurement; Power measurement; Software measurement; Cohesive interactions; connectivity pattern; discrimination metric; discriminative power; lack of discrimination anomaly; object-oriented class cohesion.;
fLanguage :
English
Journal_Title :
Software Engineering, IEEE Transactions on
Publisher :
ieee
ISSN :
0098-5589
Type :
jour
DOI :
10.1109/TSE.2010.97
Filename :
5639020
Link To Document :
بازگشت