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 条
  • [1] Dynamic coupling measurement for object-oriented software
    Department of Software Engineering, Simula Research Laboratory, Lysaker, Norway
    不详
    1600, 491-506 (August 2004):
  • [2] Package Coupling Measurement in Object-Oriented Software
    Varun Gupta
    Jitender Kumar Chhabra
    JournalofComputerScience&Technology, 2009, 24 (02) : 273 - 283
  • [3] Measurement and validation of object-oriented software coupling
    Li, Bixin
    Dongnan Daxue Xuebao (Ziran Kexue Ban)/Journal of Southeast University (Natural Science Edition), 2006, 36 (03): : 446 - 451
  • [4] Package Coupling Measurement in Object-Oriented Software
    Varun Gupta
    Jitender Kumar Chhabra
    Journal of Computer Science and Technology, 2009, 24 : 273 - 283
  • [5] Package Coupling Measurement in Object-Oriented Software
    Gupta, Varun
    Chhabra, Jitender Kumar
    JOURNAL OF COMPUTER SCIENCE AND TECHNOLOGY, 2009, 24 (02) : 273 - 283
  • [6] Dynamic coupling measures for object-oriented software
    Arisholm, E
    EIGHTH IEEE SYMPOSIUM ON SOFTWARE METRICS, PROCEEDINGS, 2002, : 33 - 42
  • [7] Object-Oriented Software Coupling Metrics
    Ma J.
    Liu F.
    Fan J.-P.
    Beijing Youdian Daxue Xuebao/Journal of Beijing University of Posts and Telecommunications, 2018, 41 (01): : 109 - 114
  • [8] A measurement framework for object-oriented software testability
    Mouchawrab, S
    Briand, LC
    Labiche, Y
    INFORMATION AND SOFTWARE TECHNOLOGY, 2005, 47 (15) : 979 - 997
  • [9] Measurement of object-oriented software spatial complexity
    Chhabra, JK
    Aggarwal, KK
    Singh, Y
    INFORMATION AND SOFTWARE TECHNOLOGY, 2004, 46 (10) : 689 - 699
  • [10] Object-oriented software for evaluating measurement uncertainty
    Hall, B. D.
    MEASUREMENT SCIENCE AND TECHNOLOGY, 2013, 24 (05)