Improving Class Cohesion Measurement: Towards a Novel Approach Using Hierarchical Clustering

HTML  Download Download as PDF (Size: 810KB)  PP. 449-458  
DOI: 10.4236/jsea.2012.57051    5,210 Downloads   8,503 Views  Citations

ABSTRACT

Class cohesion is considered as one of the most important object-oriented software attributes. High cohesion is, in fact, a desirable property of software. Many different metrics have been suggested in the last several years to measure the cohesion of classes in object-oriented systems. The class of structural object-oriented cohesion metrics is the most in-vestigated category of cohesion metrics. These metrics measure cohesion on structural information extracted from the source code. Empirical studies noted that these metrics fail in many situations to properly reflect cohesion of classes. This paper aims at exploring the use of hierarchical clustering techniques to improve the measurement of cohesion of classes in object-oriented systems. The proposed approach has been evaluated using three particular case studies. We also used in our study three well-known structural cohesion metrics. The achieved results show that the new approach appears to better reflect the cohesion (and structure) of classes than traditional structural cohesion metrics.

Share and Cite:

L. Sadaoui, M. Badri and L. Badri, "Improving Class Cohesion Measurement: Towards a Novel Approach Using Hierarchical Clustering," Journal of Software Engineering and Applications, Vol. 5 No. 7, 2012, pp. 449-458. doi: 10.4236/jsea.2012.57051.

Copyright © 2024 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.