Incorporating transitive relations in low-level design-based class cohesion measurement

被引:19
作者
Al Dallal, Jehad [1 ]
机构
[1] Kuwait Univ, Dept Informat Sci, Safat 13060, Kuwait
关键词
object-oriented design; class quality; class cohesion metric; method invocation; transitive cohesive relation; fault prediction; ORIENTED CLASS COHESION; OPEN SOURCE SOFTWARE; PRACT.-EXPER; 2000; FAULT PREDICTION; METRICS SUITE; QUALITY; CHAE; HEUNG; SEOK; KWON; YONG; RAE;
D O I
10.1002/spe.2127
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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 attributemethod 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 (c) 2012 John Wiley & Sons, Ltd.
引用
收藏
页码:685 / 704
页数:20
相关论文
共 47 条
[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]  
Al Dallal J, 2010, P WORLD C INF TECHN
[6]   A Precise Method-Method Interaction-Based Cohesion Metric for Object-Oriented Classes [J].
Al Dallal, Jehad ;
Briand, Lionel C. .
ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2012, 21 (02)
[7]   The impact of accounting for special methods in the measurement of object-oriented class cohesion on refactoring and fault prediction activities [J].
Al Dallal, Jehad .
JOURNAL OF SYSTEMS AND SOFTWARE, 2012, 85 (05) :1042-1057
[8]   Fault prediction and the discriminative powers of connectivity-based object-oriented class cohesion metrics [J].
Al Dallal, Jehad .
INFORMATION AND SOFTWARE TECHNOLOGY, 2012, 54 (04) :396-416
[9]   Improving the applicability of object-oriented class cohesion metrics [J].
Al Dallal, Jehad .
INFORMATION AND SOFTWARE TECHNOLOGY, 2011, 53 (09) :914-928
[10]   Measuring the Discriminative Power of Object-Oriented Class Cohesion Metrics [J].
Al Dallal, Jehad .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2011, 37 (06) :788-804