Qualitative analysis for the impact of accounting for special methods in object-oriented class cohesion measurement

被引:4
作者
al Dallal, Jehad [1 ]
机构
[1] Kuwait University, Department of Information Sciences
关键词
Class cohesion; Class quality; Cohesion metric; Object-oriented design; Special methods;
D O I
10.4304/jsw.8.2.327-336
中图分类号
学科分类号
摘要
Class cohesion is a key object-oriented software quality attribute. It refers to the degree of relatedness of class attributes and methods. Several class cohesion metrics are proposed in the literature. However, the impact of considering the special methods (i.e., constructors, destructors, and access and delegation methods) in cohesion calculation is not thoroughly theoretically studied for most of the existing cohesion metrics. An incorrect determination of whether to include or exclude the special methods in cohesion measurement can lead to improper refactoring decisions according to the misleading class cohesion values that are obtained. In this paper, we qualitatively analyze the impact of including or excluding the special methods in cohesion measurement on the values that are obtained by applying 19 popular class cohesion metrics. The study is based on analyzing the definitions and formulas that are proposed for the metrics. The results show that including/excluding special methods has a considerable effect on the cohesion values that are obtained and that this effect varies from one metric to another. The study shows the importance of considering the types of methods that must be accounted for when proposing a cohesion metric. © 2013 ACADEMY PUBLISHER.
引用
收藏
页码:327 / 336
页数:9
相关论文
共 32 条
[1]  
Al Dallal J., Briand L., A Precise method-method interaction-based cohesion metric for object-oriented classes, ACM Transactions on Software Engineering and Methodology (TOSEM), 21, 2, (2012)
[2]  
Briand L.C., Daly J., Wuest J., A unified framework for cohesion measurement in object-oriented systems, Empirical Software Engineering - An International Journal, 3, 1, pp. 65-117, (1998)
[3]  
Bieman J., Kang B., Cohesion and reuse in an object-oriented system, Proceedings of the 1995 Symposium on Software Reusability, Seattle, pp. 259-262, (1995)
[4]  
Al Dallal J., The impact of accounting for special methods in the measurement of object-oriented class cohesion on refactoring and fault prediction activities, Journal of Systems and Software, 85, 5, pp. 1042-1057, (2012)
[5]  
Al Dallal J., Software similarity-based functional cohesion metric, IET Software, 3, 1, pp. 46-57, (2009)
[6]  
Chidamber S.R., Kemerer C.F., Towards a Metrics Suite for Object-Oriented Design, Object-Oriented Programming Systems, Languages and Applications (OOPSLA), Special Issue of SIGPLAN Notices, 26, 10, pp. 197-211, (1991)
[7]  
Chidamber S.R., Kemerer C.F., A Metrics suite for object Oriented Design, IEEE Transactions on Software Engineering, 20, 6, pp. 476-493, (1994)
[8]  
Li W., Henry S.M., Maintenance metrics for the object oriented paradigm, Proceedings of 1st International Software Metrics Symposium, pp. 52-60, (1993)
[9]  
Hitz M., Montazeri B., Measuring coupling and cohesion in object oriented systems, Proceedings of the International Symposium on Applied Corporate Computing, pp. 25-27, (1995)
[10]  
Hendersonsellers B., Object-Oriented Metrics Measures of Complexity, (1996)