DMC: a more precise cohesion measure for classes

被引:14
作者
Wang, JM
Zhou, YM
Wen, LJ
Chen, YJ
Lu, HM
Xu, BW
机构
[1] Tsinghua Univ, Sch Software, Beijing 100084, Peoples R China
[2] SE Univ, Dept Comp Sci & Engn, Nanjing 210096, Peoples R China
基金
中国博士后科学基金; 中国国家自然科学基金;
关键词
object-oriented system; class; cohesion; measure; class element dependence graph;
D O I
10.1016/j.infsof.2004.07.001
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In object-oriented systems, a single class consists of attributes and methods and its cohesion denotes the degree of relatedness among these elements. To quantify the cohesiveness of a class, a large number of measures that only depict method-attribute reference relationships have been proposed in last decade. However, the flow-dependence relationships among attributes, the direction of method-attribute references, and the potential dependence relationships among the elements in the class are ignored. To address this problem, this paper first depicts four types of explicit dependence relationships and uses a class element dependence graph to represent all dependencies among the elements in a class. Then, a dependence matrix that reflects the degree of direct dependence and indirect dependence among the elements in a class is computed. Finally, a more precise cohesion measure for classes is proposed. (C) 2004 Elsevier B.V. All rights reserved.
引用
收藏
页码:167 / 180
页数:14
相关论文
共 21 条
[1]  
Aman H, 1998, IEICE T INF SYST, VE81D, P1364
[2]  
[Anonymous], 1995, Proceedings of the International Conference on Software Quality
[3]  
Bansiya J, 1999, J OBJECT-ORIENT PROG, V11, P47
[4]  
Bieman J. M., 1995, SIGSOFT Software Engineering Notes, P259, DOI 10.1145/223427.211856
[5]   A Unified Framework for Cohesion Measurement in Object-Oriented Systems [J].
Briand L.C. ;
Daly J.W. ;
Wüst J. .
Empirical Software Engineering, 1998, 3 (1) :65-117
[6]   Property-based software engineering measurement [J].
Briand, LC ;
Morasca, S ;
Basili, VR .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1996, 22 (01) :68-86
[7]   Defining and validating measures for object-based high-level design [J].
Briand, LC ;
Morasca, S ;
Basili, VR .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1999, 25 (05) :722-743
[8]  
Chae HS, 2000, SOFTWARE PRACT EXPER, V30, P1405, DOI 10.1002/1097-024X(200010)30:12<1405::AID-SPE330>3.0.CO
[9]  
2-3
[10]  
Chae HS, 1998, FIFTH INTERNATIONAL SOFTWARE METRICS SYMPOSIUM - METRICS 1998, PROCEEDINGS, P158, DOI 10.1109/METRIC.1998.731241