• DocumentCode
    1041498
  • Title

    Dynamic coupling measurement for object-oriented software

  • Author

    Arisholm, Erik ; Briand, Lionel C. ; Foyen, A.

  • Author_Institution
    Dept. of Software Eng., Simula Res. Lab., Lysaker, Norway
  • Volume
    30
  • Issue
    8
  • fYear
    2004
  • Firstpage
    491
  • Lastpage
    506
  • Abstract
    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. We describe 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.
  • Keywords
    inheritance; object-oriented programming; program diagnostics; software maintenance; software quality; class fault-proneness; class-level coupling; dynamic binding; dynamic coupling; object-oriented software; polymorphism; software maintenance; software quality modeling; static code analysis; Fault diagnosis; Object oriented modeling; Performance analysis; Performance evaluation; Predictive models; Q factor; Runtime; Software measurement; Software quality; Software systems; 65; Index Terms- Coupling measurement; change predictions; maintenance.; quality modeling;
  • fLanguage
    English
  • Journal_Title
    Software Engineering, IEEE Transactions on
  • Publisher
    ieee
  • ISSN
    0098-5589
  • Type

    jour

  • DOI
    10.1109/TSE.2004.41
  • Filename
    1316867