Title :
DRC: a dependence relationships based cohesion measure for classes
Author :
Zhou, Yuming ; Wen, Lijie ; Wang, Jianmin ; Chen, Yujian ; Lu, Hongmin ; Xu, Baowen
Author_Institution :
Sch. of Software, Tsinghua Univ., Beijing, China
Abstract :
A large number of cohesion measures based on method-attribute references have been proposed. However, virtually no attention has been paid to the abstract representation that objectively depicts the relationships among the members of a class. Specially, the flow dependence relationship among attributes, the indirect and potential dependence relationships among class members, and the direction of method-attribute references are ignored. To address this problem, we first identifies four types of basic dependence relationships and uses a class member dependence graph to represent all dependences among the members of a class. Then, a dependence relationships based measure for measuring the class cohesiveness is proposed. Finally, we compare our class cohesion measure with typical cohesion measures.
Keywords :
data encapsulation; inheritance; object-oriented programming; structured programming; class member dependence graph; dependence relationships based cohesion measure; indirect dependence relationship; method-attribute references; potential dependence relationship; Aggregates; Computer science; Encapsulation; Software engineering; Software measurement; Time measurement;
Conference_Titel :
Software Engineering Conference, 2003. Tenth Asia-Pacific
Print_ISBN :
0-7695-2011-1
DOI :
10.1109/APSEC.2003.1254374