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 条
[31]  
Al Dallal J., Object-oriented class maintainability prediction using internal quality attributes, Empirical Software Engineering, (2012)
[32]  
Al Dallal J., The impact of incorporating special methods and transitive relations into cohesion measurement on object-oriented class reusability prediction, Journal of Systems and Software, (2012)