Empirical Exploration for the Correlation between Class Object-Oriented Connectivity-Based Cohesion and Coupling

Attributes and methods are the basic contents of an object-oriented class. The connectivity among these class members and the relationship between the class and other classes play an important role in determining the quality of an object-oriented system. Class cohesion evaluates the degree of relatedness of class attributes and methods, whereas class coupling refers to the degree to which a class is related to other classes. Researchers have proposed several class cohesion and class coupling measures. However, the correlation between class coupling and class cohesion measures has not been thoroughly studied. In this paper, using classes of three open-source Java systems, we empirically investigate the correlation between several measures of connectivity-based class cohesion and coupling. Four connectivity-based cohesion measures and eight coupling measures are considered in the empirical study. The empirical study results show that class connectivity-based cohesion and coupling internal quality attributes are inversely correlated. The strength of the correlation depends highly on the cohesion and coupling measurement approaches. Keywords—Object-oriented class, software quality, class cohesion measure, class coupling measure.

[1]  Jehad Al Dallal Software similarity-based functional cohesion metric , 2009, IET Softw..

[2]  Jehad Al Dallal Effects of incorporating special methods into cohesion measurement on class instantiation reuse-proneness prediction , 2014, IET Softw..

[3]  Doo-Hwan Bae,et al.  A cohesion measure for object‐oriented classes , 2000 .

[4]  Jehad Al Dallal Improving the applicability of object-oriented class cohesion metrics , 2011, Inf. Softw. Technol..

[5]  Premkumar T. Devanbu,et al.  An Investigation into Coupling Measures for C++ , 1997, Proceedings of the (19th) International Conference on Software Engineering.

[6]  Jehad Al Dallal Constructing models for predicting extract subclass refactoring opportunities using object-oriented quality metrics , 2012, Inf. Softw. Technol..

[7]  Jehad Al Dallal Fault prediction and the discriminative powers of connectivity-based object-oriented class cohesion metrics , 2012, Inf. Softw. Technol..

[8]  Yuming Zhou,et al.  Comments on ‘A cohesion measure for object‐oriented classes’ by Heung Seok Chae, Yong Rae Kwon and Doo Hwan Bae (Softw. Pract. Exper. 2000; 30:1405–1431) , 2001, Softw. Pract. Exp..

[9]  Lionel C. Briand,et al.  An object-oriented high-level design-based class cohesion metric , 2010, Inf. Softw. Technol..

[10]  Hind Kabaili,et al.  Class Cohesion as predictor of changeability : An Empirical Study , 2001 .

[11]  Jehad Al Dallal Qualitative Analysis for the Impact of Accounting for Special Methods in Object-Oriented Class Cohesion Measurement , 2013, J. Softw..

[12]  Sallie M. Henry,et al.  Object-oriented metrics that predict maintainability , 1993, J. Syst. Softw..

[13]  Lionel C. Briand,et al.  A Controlled Experiment for Evaluating Quality Guidelines on the Maintainability of Object-Oriented Designs , 2001, IEEE Trans. Software Eng..

[14]  Jehad Al Dallal The impact of accounting for special methods in the measurement of object-oriented class cohesion on refactoring and fault prediction activities , 2012, J. Syst. Softw..

[15]  Jehad Al Dallal Incorporating transitive relations in low-level design-based class cohesion measurement , 2013, Softw. Pract. Exp..

[16]  Jehad Al Dallal Object-oriented class maintainability prediction using internal quality attributes , 2013, Inf. Softw. Technol..

[17]  Lionel C. Briand,et al.  A Precise Method-Method Interaction-Based Cohesion Metric for Object-Oriented Classes , 2012, TSEM.

[18]  Sandro Morasca,et al.  Predicting object-oriented class reuse-proneness using internal quality attributes , 2012, Empirical Software Engineering.

[19]  Jehad Al Dallal Measuring the Discriminative Power of Object-Oriented Class Cohesion Metrics , 2011, IEEE Transactions on Software Engineering.

[20]  Bernice W. Polemis Nonparametric Statistics for the Behavioral Sciences , 1959 .

[21]  Jehad Al Dallal Mathematical Validation of Object-Oriented Class Cohesion Metrics , 2010 .

[22]  Jehad Al Dallal Assessing the discriminative power of object-oriented cohesion metrics in practice , 2012 .

[23]  Lionel C. Briand,et al.  A Unified Framework for Cohesion Measurement in Object-Oriented Systems , 2004, Empirical Software Engineering.

[24]  Jehad Al Dallal Theoretical Analysis for the Impact of Including Special Methods in Lack-of-Cohesion Computation , 2012 .

[25]  Jehad Al Dallal Transitive-based object-oriented lack-of-cohesion metric , 2011, WCIT.

[26]  Lionel C. Briand,et al.  A Unified Framework for Coupling Measurement in Object-Oriented Systems , 1999, IEEE Trans. Software Eng..