Exploring Design Level Class Cohesion Metrics

نویسندگان

  • Kuljit Kaur Chahal
  • Hardeep Singh
چکیده

In object oriented paradigm, cohesion of a class refers to the degree to which members of the class are interrelated. Metrics have been defined to measure cohesiveness of a class both at design and source code levels. In comparison to source code level class cohesion metrics, only a few design level class cohesion metrics have been proposed. Design level class cohesion metrics are based on the assumption that if all the methods of a class have access to similar parameter types then they all process closely related information. A class with a large number of parameter types common in its methods is more cohesive than a class with less number of parameter types common in its methods. In this paper, we review the design level class cohesion metrics with a special focus on metrics which use similarity of parameter types of methods of a class as the basis of its cohesiveness. Basically three metrics fall in this category: Cohesion among Methods of a Class (CAMC), Normalized Hamming Distance (NHD), and Scaled NHD (SNHD). Keeping in mind the anomalies in the definitions of the existing metrics, a variant of the existing metrics is introduced. It is named NHD Modified (NHDM). An automated metric collection tool is used to collect the metric data from an open source software program. The metric data is then subjected to statistical analysis.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Class Cohesion Metrics in Object Oriented Systems

In order to improve the quality of an application during the development process, developers use several metrics. These metrics measure the different software attributes such as cohesion, coupling and complexity. To measure the class cohesion several class cohesion metrics have been introduced till date. Cohesion is measured during the design phase to predict software quality. A high cohesive m...

متن کامل

Comparison of High Level Design Based Class Cohesion Metrics

Class cohesion is an object-oriented software quality attribute and refers to the extent to which the members of a class are related. It is one of the fundamental measures of the goodness of a software design. Software developers use class cohesion measures to assess the quality of their products and to guide the restructuring of poorly developed software. To obtain a more comprehensive and mai...

متن کامل

Improving the quality of software cohesion metrics through dynamic analysis

Class cohesion is an important object oriented software quality attribute. Assessing the class cohesion and improving the class quality accordingly during the object oriented design phase allows for cheaper management of the later phases. Most of the cohesion metrics planned in the journalism describes static cohesion measurement at design level. Static metrics is a measure that is applied at t...

متن کامل

The impact of accounting for special methods in the measurement of object-oriented class cohesion on refactoring and fault prediction activities

Class cohesion is a key attribute that is used to assess the design quality of a class, and it refers to the extent to which the attributes and methods of the class are related. Typically, classes contain special types of methods, such as constructors, destructors, and access methods. Each of these special methods has its own characteristics, which can artificially affect the class cohesion mea...

متن کامل

Incorporating transitive relations in low-level design-based class cohesion measurement

Class cohesion metrics apply different approaches to quantify the relatedness of the attributes and methods in a class. These relations can be direct or transitive. Method invocations are among the key sources of potential transitive attribute-method relations. That is, a method is not only related to the attributes that it references, but it may also be transitively related to the attributes r...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • JSEA

دوره 3  شماره 

صفحات  -

تاریخ انتشار 2010