A cohesion measure for object-oriented classes

Citation
Hs. Chae et al., A cohesion measure for object-oriented classes, SOFTW PR EX, 30(12), 2000, pp. 1405-1431
Citations number
30
Categorie Soggetti
Computer Science & Engineering
Journal title
SOFTWARE-PRACTICE & EXPERIENCE
ISSN journal
00380644 → ACNP
Volume
30
Issue
12
Year of publication
2000
Pages
1405 - 1431
Database
ISI
SICI code
0038-0644(200010)30:12<1405:ACMFOC>2.0.ZU;2-W
Abstract
In object-oriented systems, cohesion refers to the degree of the relatednes s of the members in a class and strong cohesion has been recognized as a hi ghly desirable property of classes. We note that the existing cohesion meas ures do not take into account some characteristics of classes, and thus oft en fail to properly reflect the cohesiveness of classes. To cope with such a problem, we propose a new cohesion measure where the characteristics of c lasses are incorporated. Our cohesion measure takes into account the member s that actually have impact on the cohesiveness of a class, and is defined in terms of the degree of the connectivity among those members. We develop a cohesion measurement tool for C++ programs, and perform a case study on a well-known class library in order to demonstrate the effectiven ess of our new measure. By performing principal component analysis, we also demonstrate that our measure captures a new aspect of class properties whi ch is not captured by the existing cohesion measures. Copyright (C) 2000 Jo hn Whey & Sons, Ltd.