An investigation of design level class cohesion metrics

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

Kaur, Kuljit
Singh, Hardeep

المصدر

The International Arab Journal of Information Technology

العدد

المجلد 9، العدد 1 (31 يناير/كانون الثاني 2012)، ص ص. 66-73، 8ص.

الناشر

جامعة الزرقاء

تاريخ النشر

2012-01-31

دولة النشر

الأردن

عدد الصفحات

8

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

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

الموضوعات

الملخص EN

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).

A major point of difference is that the NHD metric counts a disagreement only if class methods taken as pairs disagree on a parameter type that one method uses but the other method, in the pair, does not use.

It ignores the case when both methods of a pair do not use a parameter type.

NHD indirectly counts it as an agreement, but NHDM considers such a case as a disagreement.

An automated metric collection tool is used to collect the metrics data from an open source Java based software program containing 884 classes.

Metrics data is then subjected to statistical analysis.

The NHDM metric shows the maximum amount of variation in data values in comparison to other metrics in the group.

NHDM is strongly correlated with CAMC.

Unlike the previous studies, no significant correlation is found in CAMC and NHD.

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

Kaur, Kuljit& Singh, Hardeep. 2012. An investigation of design level class cohesion metrics. The International Arab Journal of Information Technology،Vol. 9, no. 1, pp.66-73.
https://search.emarefa.net/detail/BIM-274309

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

Kaur, Kuljit& Singh, Hardeep. An investigation of design level class cohesion metrics. The International Arab Journal of Information Technology Vol. 9, no. 1 (Jan. 2012), pp.66-73.
https://search.emarefa.net/detail/BIM-274309

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

Kaur, Kuljit& Singh, Hardeep. An investigation of design level class cohesion metrics. The International Arab Journal of Information Technology. 2012. Vol. 9, no. 1, pp.66-73.
https://search.emarefa.net/detail/BIM-274309

نوع البيانات

مقالات

لغة النص

الإنجليزية

الملاحظات

Includes bibliographical references : p. 72-73

رقم السجل

BIM-274309