Dynamic coupling measurement for object-oriented software

被引:173
|
作者
Arisholm, E [1 ]
Briand, LC
Foyen, A
机构
[1] Simula Res Lab, Dept Software Engn, Lysaker, Norway
[2] Carleton Univ, Softwazre Qual Engn Lab, Ottawa, ON, Canada
基金
加拿大自然科学与工程研究理事会;
关键词
coupling measurement; change predictions; quality modeling; maintenance;
D O I
10.1109/TSE.2004.41
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The relationships between coupling and external quality factors of object-oriented software have been studied extensively for the past few years. For example, several studies have identified clear empirical relationships between class-level coupling and class fault-proneness. A common way to define and measure coupling is through structural properties and static code analysis. However, because of polymorphism, dynamic binding, and the common presence of unused ("dead") code in commercial software, the resulting coupling measures are imprecise as they do not perfectly reflect the actual coupling taking place among classes at runtime. For example, when using static analysis to measure coupling, it is difficult and sometimes impossible to determine what actual methods can be invoked from a client class if those methods are overridden in the subclasses of the server classes. Coupling measurement has traditionally been performed using static code analysis, because most of the existing work was done on nonobject oriented code and because dynamic code analysis is more expensive and complex to perform. For modern software systems, however, this focus on static analysis can be problematic because although dynamic binding existed before the advent of object-orientation, its usage has increased significantly in the last decade. This paper describes how coupling can be defined and precisely measured based on dynamic analysis of systems. We refer to this type of coupling as dynamic coupling. An empirical evaluation of the proposed dynamic coupling measures is reported in which we study the relationship of these measures with the change proneness of classes. Data from maintenance releases of a large Java system are used for this purpose. Preliminary results suggest that some dynamic coupling measures are significant indicators of change proneness and that they complement existing coupling measures based on static analysis.
引用
收藏
页码:491 / 506
页数:16
相关论文
共 50 条
  • [21] OBJECT-ORIENTED SOFTWARE EVOLUTION
    LIEBERHERR, KJ
    XIAO, C
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1993, 19 (04) : 313 - 343
  • [22] Debugging of object-oriented software
    Law, RCH
    Maguire, RB
    SEKE '96: THE 8TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, PROCEEDINGS, 1996, : 77 - 84
  • [23] OBJECT-ORIENTED SOFTWARE TECHNOLOGY
    DEUTSCH, LP
    COMPUTER, 1991, 24 (09) : 112 - 113
  • [24] OBJECT-ORIENTED SOFTWARE TESTING
    BINDER, RV
    COMMUNICATIONS OF THE ACM, 1994, 37 (09) : 28 - 29
  • [25] MAINTAINING OBJECT-ORIENTED SOFTWARE
    WILDE, N
    MATTHEWS, P
    HUITT, R
    IEEE SOFTWARE, 1993, 10 (01) : 75 - 80
  • [26] Slicing object-oriented software
    Larsen, L
    Harrold, MJ
    PROCEEDINGS OF THE 18TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, 1996, : 495 - 505
  • [27] Formal description of object-oriented software measurement and metrics in SEMS
    Wang, YX
    OOIS 2001: 7TH INTERNATIONAL CONFERENCE ON OBJECT-ORIENTED INFORMATION SYSTEMS, PROCEEDINGS, 2001, : 123 - 132
  • [28] Measurement of object-oriented software understandability using spatial complexity
    Aggarwal, KK
    Singh, Y
    Chhabra, JK
    NINTH ISSAT INTERNATIONAL CONFERENCE ON RELIABILITY AND QUALITY IN DESIGN, 2003 PROCEEDINGS, 2003, : 230 - 234
  • [29] A software complexity measurement technique for object-oriented reverse engineering
    Kim, J
    Hwang, CS
    Choi, JH
    SERP '05: Proceedings of the 2005 International Conference on Software Engineering Research and Practice, Vols 1 and 2, 2005, : 663 - 669
  • [30] Decomposition of multiple inheritance DAGs for object-oriented software measurement
    Shih, TK
    Chung, CM
    Wang, CC
    SOFTWARE QUALITY ENGINEERING, 1997, : 201 - 212