A new metric for class cohesion for object oriented software

المؤلفون المشاركون

Gosain, Anjana
Sharma, Ganga

المصدر

The International Arab Journal of Information Technology

العدد

المجلد 17، العدد 3 (31 مايو/أيار 2020)، ص ص. 411-421، 11ص.

الناشر

جامعة الزرقاء عمادة البحث العلمي

تاريخ النشر

2020-05-31

دولة النشر

الأردن

عدد الصفحات

11

التخصصات الرئيسية

تكنولوجيا المعلومات وعلم الحاسوب

الملخص EN

Various class cohesion metrics exist in literature both at design level and source code level to assess the quality of Object Oriented (OO) software.

However, the idea of cohesive interactions (or relationships) between instance variables (i.e., attributes) and methods of a class for measuring cohesion varies from one metric to another.

Some authors have used instance variable usage by methods of the class to measure class cohesion while some focus on similarity of methods based on sharing of instance variables.

However, researchers believe that such metrics still do not properly capture cohesiveness of classes.

Therefore, measures based on different perspective on the idea of cohesive interactions should be developed.

Consequently, in this paper, we propose a source code level class cohesion metric based on instance variable usage by methods.

We first formalize three types of cohesive interactions and then categorize these cohesive interactions by providing them ranking and weights in order to compute our proposed measure.

To determine the usefulness of the proposed measure, theoretical validation using a property based axiomatic framework has been done.

For empirical validation, we have used Pearson correlation analysis and logistic regression in an experimental study conducted on 28 Java classes to determine the relationship between the proposed measure and maintenance-effort of classes.

The results indicate that the proposed cohesion measure is strongly correlated with maintenance-effort and can serve as a good predictor of the same.

نمط استشهاد جمعية علماء النفس الأمريكية (APA)

Gosain, Anjana& Sharma, Ganga. 2020. A new metric for class cohesion for object oriented software. The International Arab Journal of Information Technology،Vol. 17, no. 3, pp.411-421.
https://search.emarefa.net/detail/BIM-962356

نمط استشهاد الجمعية الأمريكية للغات الحديثة (MLA)

Gosain, Anjana& Sharma, Ganga. A new metric for class cohesion for object oriented software. The International Arab Journal of Information Technology Vol. 17, no. 3 (May. 2020), pp.411-421.
https://search.emarefa.net/detail/BIM-962356

نمط استشهاد الجمعية الطبية الأمريكية (AMA)

Gosain, Anjana& Sharma, Ganga. A new metric for class cohesion for object oriented software. The International Arab Journal of Information Technology. 2020. Vol. 17, no. 3, pp.411-421.
https://search.emarefa.net/detail/BIM-962356

نوع البيانات

مقالات

لغة النص

الإنجليزية

الملاحظات

Includes bibliographical references : p. 419-420

رقم السجل

BIM-962356