ACM Home Page
Please provide us with feedback. Feedback
The interpretation and utility of three cohesion metrics for object-oriented design
Full text PdfPdf (256 KB)
Source ACM Transactions on Software Engineering and Methodology (TOSEM) archive
Volume 15 ,  Issue 2  (April 2006) table of contents
Pages: 123 - 149  
Year of Publication: 2006
ISSN:1049-331X
Authors
Steve Counsell  Brunel University, Uxbridge, England
Stephen Swift  Brunel University, Uxbridge, England
Jason Crampton  University of London, England
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 38,   Downloads (12 Months): 289,   Citation Count: 1
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Review this Article  
Save this Article to a Binder    Display Formats: BibTex  EndNote ACM Ref   
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1131421.1131422
What is a DOI?

ABSTRACT

The concept of cohesion in a class has been the subject of various recent empirical studies and has been measured using many different metrics. In the structured programming paradigm, the software engineering community has adopted an informal yet meaningful and understandable definition of cohesion based on the work of Yourdon and Constantine. The object-oriented (OO) paradigm has formalised various cohesion measures, but the argument over the most meaningful of those metrics continues to be debated. Yet achieving highly cohesive software is fundamental to its comprehension and thus its maintainability. In this article we subject two object-oriented cohesion metrics, CAMC and NHD, to a rigorous mathematical analysis in order to better understand and interpret them. This analysis enables us to offer substantial arguments for preferring the NHD metric to CAMC as a measure of cohesion. Furthermore, we provide a complete understanding of the behaviour of these metrics, enabling us to attach a meaning to the values calculated by the CAMC and NHD metrics. In addition, we introduce a variant of the NHD metric and demonstrate that it has several advantages over CAMC and NHD. While it may be true that a generally accepted formal and informal definition of cohesion continues to elude the OO software engineering community, there seems considerable value in being able to compare, contrast, and interpret metrics which attempt to measure the same features of software.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
 
2
 
3
Bansiya, J., Etzkorn, L., Davis, C., and Li, W. 1999. A class cohesion metric for object-oriented designs. J. Object-Oriented Program. 11, 8, 47--52.
 
4
5
 
6
 
7
 
8
 
9
 
10
11
 
12
 
13
Counsell, S., Mendes, E., Swift, S., and Tucker, A. 2001. An empirical investigation of fault seeding in requirements document. In Proceedings of the Empirical Assessment in Software Engineering EASE'01 (Keele, UK).
 
14
Counsell, S., Mendes, E., Swift, S., and Tucker, A. 2002. Evaluation of an object-oriented cohesion metric through Hamming distances. Tech. Rep. BBKCS-02-10, Birkbeck College, University of London, UK.
 
15
Counsell, S., Newson, P., and Mendes, E. 2004. Design level hypothesis testing through reverse engineering of object-oriented software. Int. J. Soft. Eng. Knowl. Eng. 14, 2, 207--220.
 
16
 
17
Henderson-Sellers, B., Constantine, L., and Graham, I. 1996. Coupling and cohesion (towards a valid metrics suite for object-oriented analysis and design). Object Oriented Syst. 3, 3, 143--158.
 
18
Hitz, M. and Montazeri, B. 1995. Measuring coupling and cohesion in object-oriented systems. In Proceedings of the 3rd International Symposium on Applied Corporate Computing ISACC'95 (Monterrey, Mexico).
19
 
20
 
21
Li, W. and Henry, S. 1993. Maintenance metrics for the object-oriented paradigm. In Proceedings of the 1st International Software Metrics Symposium (Baltimore, Md.), 52--60.
 
22
Mitchell, A. and Power, J. 2004. Run-time cohesion metrics: An empirical investigation. In Proceedings of the International Conference on Software Engineering Research and Practice (Las Vegas, Nev.), 9--14.
 
23
Snedecor, G. and Cochran, W. 1989. Statistical Methods, 8th ed., Iowa State University Press, Ames, Iowa.
 
24
Stevens, W., Myers, G., and Constantine, L. 1974. Structured design. IBM Syst. J. 13, 2, 115--139.
 
25
Yourdon, E. and Constantine, L. 1979. Structured Design. Prentice Hall, Englewood Cliffs, NJ.


Collaborative Colleagues:
Steve Counsell: colleagues
Stephen Swift: colleagues
Jason Crampton: colleagues