DRC: a dependence relationships based cohesion measure for classes

A large number of cohesion measures based on method-attribute references have been proposed. However, virtually no attention has been paid to the abstract representation that objectively depicts the relationships among the members of a class. Specially, the flow dependence relationship among attributes, the indirect and potential dependence relationships among class members, and the direction of method-attribute references are ignored. To address this problem, we first identifies four types of basic dependence relationships and uses a class member dependence graph to represent all dependences among the members of a class. Then, a dependence relationships based measure for measuring the class cohesiveness is proposed. Finally, we compare our class cohesion measure with typical cohesion measures.

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

[2]  Letha H. Etzkorn,et al.  A Class Cohesion Metric For Object-Oriented Designs , 1999, J. Object Oriented Program..

[3]  Yuming Zhou,et al.  A novel approach to measuring class cohesion based on dependence analysis , 2002, International Conference on Software Maintenance, 2002. Proceedings..

[4]  Glenford J. Myers,et al.  Composite/structured design , 1978 .

[5]  Martin Hitz,et al.  Measuring coupling and cohesion in object-oriented systems , 1995 .

[6]  James M. Bieman,et al.  Program slices as an abstraction for cohesion measurement , 1998, Inf. Softw. Technol..

[7]  Yuming Zhou,et al.  ICBMC: an improved cohesion measure for classes , 2002, International Conference on Software Maintenance, 2002. Proceedings..

[8]  T. J. Emerson A discriminant metric for module cohesion , 1984, ICSE '84.

[9]  Sandro Morasca,et al.  Defining and Validating Measures for Object-Based High-Level Design , 1999, IEEE Trans. Software Eng..

[10]  Torao Yanaru,et al.  A Metric for Class Structural Complexity Focusing on Relationships among Class Members , 1998 .

[11]  Taghi M. Khoshgoftaar,et al.  Measuring coupling and cohesion: an information-theory approach , 1999, Proceedings Sixth International Software Metrics Symposium (Cat. No.PR00403).

[12]  James M. Bieman,et al.  Measuring Functional Cohesion , 1994, IEEE Trans. Software Eng..

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

[14]  M. Linda,et al.  Measuring Functional Cohesion Colorado State University Measuring Functional Cohesion Submitted for Publication , 1993 .

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

[16]  William C. Chu,et al.  A measure for composite module cohesion , 1992, International Conference on Software Engineering.

[17]  Lionel C. Briand,et al.  A Unified Framework for Cohesion Measurement in Object-Oriented Systems , 1997, Proceedings Fourth International Software Metrics Symposium.

[18]  Arun Lakhotia Rule-based approach to computing module cohesion , 1993, Proceedings of 1993 15th International Conference on Software Engineering.