Transitive-based object-oriented lack-of-cohesion metric

Abstract Classes are the basic units in object-oriented programs. Therefore, the quality of a class has a great impact on the overall quality of the software. Class cohesion is one of the important quality factors and it refers to the degree of relatedness of the class attributes and methods. Several class cohesion metrics are proposed in the literature, and a few of them empirically address the effect of considering transitive relations between class attributes and methods caused by method invocations. In this paper, we address this issue for one of the most popular class cohesion metrics, referenced as Lack of Cohesion (LCOM). Our empirical study involves applying the metric with and without considering transitive relations on classes of two open source Java applications and statistically analyzing the results. The empirical study results show that the ability of LCOM in indicating class quality improves when considering both direct and transitive relations in the LCOM computation.

[1]  Chris F. Kemerer,et al.  A Metrics Suite for Object Oriented Design , 2015, IEEE Trans. Software Eng..

[2]  Challa Bonja,et al.  Metrics for class cohesion and similarity between methods , 2006, ACM-SE 44.

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

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

[5]  Mourad Badri,et al.  A Proposal of a New Class Cohesion Criterion: An Empirical Study , 2004, J. Object Technol..

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

[7]  Jehad Al Dallal Efficient Program Slicing Algorithms for Measuring Functional Cohesion and Parallelism , 2008 .

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

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

[10]  Tibor Gyimóthy,et al.  Empirical validation of object-oriented metrics on open source software for fault prediction , 2005, IEEE Transactions on Software Engineering.

[11]  Lionel C. Briand,et al.  Replicated Case Studies for Investigating Quality Factors in Object-Oriented Designs , 2001, Empirical Software Engineering.

[12]  Cemal Yilmaz,et al.  Software Metrics , 2008, Wiley Encyclopedia of Computer Science and Engineering.

[13]  Heeae Ko,et al.  A Study on the Mobile Web Generating using Element of User Experience , 2007 .

[14]  Sallie M. Henry,et al.  Maintenance metrics for the object oriented paradigm , 1993, [1993] Proceedings First International Software Metrics Symposium.

[15]  James M. Bieman,et al.  Cohesion and reuse in an object-oriented system , 1995, SSR '95.

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

[17]  J. Hanley,et al.  The meaning and use of the area under a receiver operating characteristic (ROC) curve. , 1982, Radiology.

[18]  D. Hosmer,et al.  Applied Logistic Regression , 1991 .

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

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

[21]  Letha H. Etzkorn,et al.  Clarifying specialized forms of association in UML and OML , 1998 .

[22]  Jason Crampton,et al.  The interpretation and utility of three cohesion metrics for object-oriented design , 2006, TSEM.

[23]  Rudolf Ferenc,et al.  Using the Conceptual Cohesion of Classes for Fault Prediction in Object-Oriented Systems , 2008, IEEE Transactions on Software Engineering.

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

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

[26]  Chris F. Kemerer,et al.  Towards a metrics suite for object oriented design , 2017, OOPSLA '91.