A Class Cohesion Metric Focusing on Cohesive-Part Size

SUMMARY Cohesion is an important software attribute, and it is one of significant criteria for assessing object-oriented software quality. Although several metrics for measuring cohesion have been proposed, there is an aspect which has not been supported by those existing metrics, that is “cohesive-part size.” This paper proposes a new metric focusing on “cohesive-part size,” and evaluates it in both of qualitative and quantitative ways, with a mathematical framework and an experiment measuring some Java classes, respectively. Through those evaluations, the proposed metric is showed to be a reasonable metric, and not redundant one. It can collaborate with other existing metrics in measuring class cohesion, and will contribute to more accurate measurement.

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

[2]  Paul G. Hoel,et al.  Elementary statistics , 1971 .

[3]  Sandro Morasca,et al.  Property-Based Software Engineering Measurement , 1996, IEEE Trans. Software Eng..

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

[5]  David F. McAllister,et al.  Discrete mathematics in computer science , 1977 .

[6]  Glenford J. Myers,et al.  Software Reliability: Principles and Practices , 1976 .

[7]  Man-Keung Siu,et al.  Introduction to graph theory (4th edition), by Robin J. Wilson. Pp. 171. £14.99. 1996. ISBN : 0-582-24993-7 (Longman). , 1998, The Mathematical Gazette.

[8]  Martin Hitz,et al.  Chidamber & Kemerer's Metrics Suite: a Measurement Theory Perspective , 1996 .

[9]  Victor R. Basili,et al.  A validation of object oriented metrics as quality indicators , 1996 .

[10]  D. West Introduction to Graph Theory , 1995 .

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

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

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

[14]  M. R. Adams,et al.  Measure Theory and Probability , 1986 .

[15]  Glenford J. Myers,et al.  Structured Design , 1999, IBM Syst. J..

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

[17]  Shari Lawrence Pfleeger,et al.  Software Metrics : A Rigorous and Practical Approach , 1998 .

[18]  Meilir Page-Jones,et al.  The practical guide to structured systems design , 1980 .