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 条
  • [11] Dynamic cohesion measures for object-oriented software
    Gupta, Varun
    Chhabra, Jitender Kumar
    JOURNAL OF SYSTEMS ARCHITECTURE, 2011, 57 (04) : 452 - 462
  • [12] Dynamic coupling measurement of object oriented software using trace events
    Kavitha, A.
    Shanmugan, A.
    2008 6TH INTERNATIONAL SYMPOSIUM ON APPLIED MACHINE INTELLIGENCE AND INFORMATICS, 2008, : 237 - +
  • [13] A Coupling and Cohesion Metrics Suite for Object-Oriented Software
    Husein, Sukainah
    Oxley, Alan
    PROCEEDINGS OF THE 2009 INTERNATIONAL CONFERENCE ON COMPUTER TECHNOLOGY AND DEVELOPMENT, VOL 1, 2009, : 421 - 425
  • [14] A Novel Coupling Metric for Object-Oriented Software Systems
    Li, Huan
    2008 IEEE INTERNATIONAL SYMPOSIUM ON KNOWLEDGE ACQUISITION AND MODELING WORKSHOP PROCEEDINGS, VOLS 1 AND 2, 2008, : 609 - 612
  • [15] Package level cohesion measurement in object-oriented software
    Gupta, Varun
    Chhabra, Jitender Kumar
    Journal of the Brazilian Computer Society, 2012, 18 (03) : 251 - 266
  • [16] Object-Oriented Software Maintainability Measurement in the past Decade
    Orenyi, Bajeh Amos
    Basri, Shuib
    Jung, Low Tan
    2012 INTERNATIONAL CONFERENCE ON ADVANCED COMPUTER SCIENCE APPLICATIONS AND TECHNOLOGIES (ACSAT), 2012, : 257 - 262
  • [17] Object-oriented dynamic complexity measures for software understandability
    Gosain A.
    Sharma G.
    Innovations in Systems and Software Engineering, 2017, 13 (2-3) : 177 - 190
  • [18] A unified framework for coupling measurement in object-oriented systems
    Briand, LC
    Daly, JW
    Wüst, JK
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1999, 25 (01) : 91 - 121
  • [19] An aggregated coupling measure for the analysis of object-oriented software systems
    Czibula, Istvan Gergely
    Czibula, Gabriela
    Miholca, Diana-Lucia
    Onet-Marian, Zsuzsanna
    JOURNAL OF SYSTEMS AND SOFTWARE, 2019, 148 : 1 - 20