• DocumentCode
    980906
  • Title

    Using the Conceptual Cohesion of Classes for Fault Prediction in Object-Oriented Systems

  • Author

    Marcus, Andrian ; Poshyvanyk, Denys ; Ferenc, Rudolf

  • Author_Institution
    Wayne State Univ., Detroit
  • Volume
    34
  • Issue
    2
  • fYear
    2008
  • Firstpage
    287
  • Lastpage
    300
  • Abstract
    High cohesion is a desirable property of software as it positively impacts understanding, reuse, and maintenance. Currently proposed measures for cohesion in Object-Oriented (OO) software reflect particular interpretations of cohesion and capture different aspects of it. Existing approaches are largely based on using the structural information from the source code, such as attribute references, in methods to measure cohesion. This paper proposes a new measure for the cohesion of classes in OO software systems based on the analysis of the unstructured information embedded in the source code, such as comments and identifiers. The measure, named the Conceptual Cohesion of Classes (C3), is inspired by the mechanisms used to measure textual coherence in cognitive psychology and computational linguistics. This paper presents the principles and the technology that stand behind the C3 measure. A large case study on three open source software systems is presented which compares the new measure with an extensive set of existing metrics and uses them to construct models that predict software faults. The case study shows that the novel measure captures different aspects of class cohesion compared to any of the existing cohesion measures. In addition, combining C3 with existing structural cohesion metrics proves to be a better predictor of faulty classes when compared to different combinations of structural cohesion metrics.
  • Keywords
    object-oriented programming; software fault tolerance; software metrics; conceptual class cohesion; object-oriented software system; open source software system; software fault prediction; software metrics; Code documentation; Document analysis; Document indexing; Maintainability; Metrics/Measurement; Quality analysis and evaluation; Restructuring; and reengineering; reverse engineering;
  • fLanguage
    English
  • Journal_Title
    Software Engineering, IEEE Transactions on
  • Publisher
    ieee
  • ISSN
    0098-5589
  • Type

    jour

  • DOI
    10.1109/TSE.2007.70768
  • Filename
    4384505