Dynamic cohesion measures for object-oriented software

被引:13
作者
Gupta, Varun [1 ]
Chhabra, Jitender Kumar [1 ]
机构
[1] Natl Inst Technol, Dept Comp Engn, Kurukshetra 136119, Haryana, India
关键词
Cohesion; Dynamic metrics; Dynamic analysis; Software engineering; Object-oriented software systems; METRICS;
D O I
10.1016/j.sysarc.2010.05.008
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Most of the object-oriented cohesion metrics proposed in the literature define static cohesion at class level. Measurement of object-level dynamic cohesion however gives better insight into the behavioural aspects of the system. In this paper, dynamic cohesion metrics are introduced which provide scope of cohesion measurement up to object level and take into account important and widely used object-oriented features such as inheritance, polymorphism and dynamic binding during measurement. A theoretical framework is introduced before defining the measures and a theoretic validation of the proposed measures is carried out to make them more meaningful. A dynamic analyser tool is developed using aspect-oriented programming (ADP) to perform dynamic analysis of Java applications for the purpose of collecting run-time data for computation of the proposed dynamic cohesion measures. Further, an experiment is carried out for the proposed dynamic cohesion metrics using 20 Java programs and this study shows that the proposed dynamic cohesion metrics are more accurate and useful in comparison to the existing cohesion metrics. Moreover, the proposed dynamic cohesion metrics are validated empirically using source code APIs of Java Development Kit (JDK) and the proposed metrics are found to be better indicators of change-proneness of classes than the existing cohesion metrics. (C) 2010 Elsevier B.V. All rights reserved.
引用
收藏
页码:452 / 462
页数:11
相关论文
共 46 条
[1]  
Aman H, 1998, IEICE T INF SYST, VE81D, P1364
[2]  
[Anonymous], AspectC++
[3]  
[Anonymous], P 3 INT S PRINC PRAC
[4]  
[Anonymous], ASPECTJ
[5]  
[Anonymous], P 1995 S SOFTW REUS
[6]   Dynamic coupling measurement for object-oriented software [J].
Arisholm, E ;
Briand, LC ;
Foyen, A .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2004, 30 (08) :491-506
[7]   Dynamic coupling measures for object-oriented software [J].
Arisholm, E .
EIGHTH IEEE SYMPOSIUM ON SOFTWARE METRICS, PROCEEDINGS, 2002, :33-42
[8]  
Bansiya J, 1999, J OBJECT-ORIENT PROG, V11, P47
[9]   A METHODOLOGY FOR COLLECTING VALID SOFTWARE ENGINEERING DATA [J].
BASILI, VR ;
WEISS, DM .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1984, 10 (06) :728-738
[10]   THE TAME PROJECT - TOWARDS IMPROVEMENT-ORIENTED SOFTWARE ENVIRONMENTS [J].
BASILI, VR ;
ROMBACH, HD .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1988, 14 (06) :758-773