DocumentCode :
2355444
Title :
A cohesion measure for classes in object-oriented systems
Author :
Chae, Heung Seok ; Kwon, Yong Rae
Author_Institution :
Dept. of Comput. Sci., Korea Adv. Inst. of Sci. & Technol., Seoul, South Korea
fYear :
1998
fDate :
20-21 Nov 1998
Firstpage :
158
Lastpage :
166
Abstract :
Classes are the fundamental concepts in the object-oriented paradigm. They are the basic units of object-oriented programs, and serve as the units of encapsulation, which promotes the modifiability and the reusability of them. In order to take full advantage of the desirable features provided by classes, such as data abstraction and encapsulation, classes should be designed to have good quality. Because object-oriented systems are developed by heavily reusing the existing classes, the classes of poor quality can be a serious obstacle to the development of systems. We define a new cohesion measure for assessing the quality of classes. Our approach is based on the observations on the salient natures of classes which have not been considered in the previous approaches. A Most Cohesive Component (MCC) is introduced as the most cohesive form of a class. We believe that the cohesion of a class depends on the connectivity of itself and its constituent components. We propose the connectivity factor to indicate the degree of the connectivity among the members of a class, and the structure factor to take into account the cohesiveness of its constituent components. Consequently, the cohesion of a class is defined as the product of the connectivity factor and the structure factor. This cohesion measure indicates how closely a class approaches MCC; the closely a class approaches MCC, the greater cohesion the class has
Keywords :
data encapsulation; object-oriented programming; software metrics; software quality; software reusability; Most Cohesive Component; class cohesion measure; connectivity factor; data abstraction; data encapsulation; object-oriented systems; software metrics; software modifiability; software quality; software reusability; software reuse; Computer science; Encapsulation; Guidelines; Object oriented modeling;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Metrics Symposium, 1998. Metrics 1998. Proceedings. Fifth International
Conference_Location :
Bethesda, MD
Print_ISBN :
0-8186-9201-4
Type :
conf
DOI :
10.1109/METRIC.1998.731241
Filename :
731241
Link To Document :
بازگشت