Improving the applicability of object-oriented class cohesion metrics

被引:20
作者
Al Dallal, Jehad [1 ]
机构
[1] Kuwait Univ, Dept Informat Sci, Safat 13060, Kuwait
关键词
Metric applicability; Object-oriented software quality; Object-oriented class cohesion; Fault prediction; QUALITY; SUITE;
D O I
10.1016/j.infsof.2011.03.004
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context: Class cohesion is an important object-oriented quality attribute. It refers to the degree of relatedness between the methods and attributes of a class. Several metrics have been proposed to measure the extent to which the class members are related. Most of these metrics have undefined values for a relatively high percentage of classes, which limits their applicability. The classes that have undefined values lack methods, attributes, or parameter types, or they include only a single method. Objective: We improve the applicability of the class cohesion metrics by defining their values for such special classes. In addition, we theoretically and empirically validate the improved metrics. Method: We theoretically examine whether the defined values satisfy the key cohesion properties. In addition, we empirically validate the metrics before and after the improvements to test whether the defined values improve the ability of the metrics to evaluate class cohesion. We also explore the correlation between the metrics and the presence of faulty classes to indirectly determine the strength or weakness of the metrics in indicating class quality. Results: The results show that our assigned values for the undefined cases do not violate the key cohesion properties and considerably improve the ability of the metrics to explain the presence of faulty classes and may therefore improve their ability to indicate the quality of the class design. Conclusions: Having the class cohesion metrics defined for all possible cases improves the applicability of the metrics and potentially increases their precision in indicating class quality. (C) 2011 Published by Elsevier B.V.
引用
收藏
页码:914 / 928
页数:15
相关论文
共 60 条
[1]  
Abdi H., 2007, Encyclopedia of Measurement and Statistics, P651, DOI DOI 10.4135/9781412952644.N299
[2]   Investigating effect of Design Metrics on Fault Proneness in Object-Oriented Systems [J].
Aggarwal, K. K. ;
Singh, Yogesh ;
Kaur, Arvinder ;
Malhotra, Ruchika .
JOURNAL OF OBJECT TECHNOLOGY, 2007, 6 (10) :127-141
[3]   Software similarity-based functional cohesion metric [J].
Al Dallal, J. .
IET SOFTWARE, 2009, 3 (01) :46-57
[4]  
Al Dallal J., 2010, INT J COMPUTER SCI, V4, P45
[5]   An object-oriented high-level design-based class cohesion metric [J].
Al Dallal, Jehad ;
Briand, Lionel C. .
INFORMATION AND SOFTWARE TECHNOLOGY, 2010, 52 (12) :1346-1361
[6]  
Al Dallal J, 2007, PROC WRLD ACAD SCI E, V25, P448
[7]  
[Anonymous], ILLUSION
[8]  
[Anonymous], OPENBRAVO
[9]  
[Anonymous], ACM SIGSOFT SOFTWARE
[10]  
[Anonymous], INFORM SOFTWAR UNPUB