Quantifying Class Cohesion in Object‐Oriented Software Systems Using Hesitant Fuzzy Entropy for Improved Software Maintenance
Journal of Software: Evolution and Process · 2026-05 · 38 (5)
DOI: 10.1002/smr.70101 ↗Kurz gefasst
Fachartikel in der Zeitschrift Journal of Software: Evolution and Process, online erschienen am 01.05.2026. Verfasst von Maryam Hooshyar und 2 weiteren Autor:innen. Die Arbeit nennt 51 Literaturangaben.
Abstract (Originalsprache)
Class cohesion is an important design aspect in object‐oriented software systems, impacting their development and maintenance. Existing literature proposes various object‐oriented cohesion metrics, aiming to measure the relationship among class members. However, these metrics differ in their approaches to measuring cohesion through interactions between attributes and methods. Anomalies such as lack of discrimination and sensitivity pose fundamental problems in cohesion metrics. The objective is to address the limitations of existing metrics and provide a more effective measure to compute the class cohesion. This paper introduces a new approach, SCBHFE, based on hesitant fuzzy entropy, to measure class cohesion. This approach not only uses shared attributes but also unshared attributes and neighbors of the method to evaluate class cohesion. The proposed method involves establishing a fuzzy set that corresponds to the target class and assigns membership degrees to individual methods. The SCBHFE metric is designed to preserve the four important properties of class cohesion theory. We empirically validate SCBHFE through a multifaceted evaluation. First, on a benchmark of 20 diverse classes, SCBHFE achieves 100% discrimination accuracy, successfully differentiating all key cohesion cases where 22 existing metrics, including LCOM1, LCOM2, LCOM3, LCOM5, Coh, CC, SCOM, LSCC, and LCC‐fail. Subsequently, applying SCBHFE to three large Java open‐source systems (Tomcat, Ant, and JFreeChart) confirms its practical effectiveness, consistently identifying low‐cohesion classes with values as low as 0.03–0.13. Statistical validation via principal component analysis further shows that SCBHFE captures a unique dimension of cohesion not addressed by prior metrics. Finally, SCBHFE demonstrates strong utility in detecting god classes in GanttProject and Xerces, thereby providing a reliable indicator for refactoring.
Zitieren
APA
Hooshyar, M., Izadkhah, H., & Karimpour, J. (2026). Quantifying Class Cohesion in Object‐Oriented Software Systems Using Hesitant Fuzzy Entropy for Improved Software Maintenance. Journal of Software: Evolution and Process, 38(5). https://doi.org/10.1002/smr.70101
Vancouver
Hooshyar M, Izadkhah H, Karimpour J. Quantifying Class Cohesion in Object‐Oriented Software Systems Using Hesitant Fuzzy Entropy for Improved Software Maintenance. Journal of Software: Evolution and Process. 2026;38(5). doi:10.1002/smr.70101
BibTeX
@article{Hooshyar2026,
author = {Hooshyar, Maryam and Izadkhah, Habib and Karimpour, Jaber},
title = {Quantifying Class Cohesion in Object‐Oriented Software Systems Using Hesitant Fuzzy Entropy for Improved Software Maintenance},
journal = {Journal of Software: Evolution and Process},
year = {2026},
volume = {38},
number = {5},
doi = {10.1002/smr.70101}
}
EUVIMED