کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
458668 696179 2012 16 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
The impact of accounting for special methods in the measurement of object-oriented class cohesion on refactoring and fault prediction activities
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر شبکه های کامپیوتری و ارتباطات
پیش نمایش صفحه اول مقاله
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 measurement. Several metrics have been proposed in the literature to indicate class cohesion during high- or low-level design phases. The impact of accounting for special methods in cohesion measurement has not been addressed for most of these metrics. This paper empirically explores the impact of including or excluding special methods on cohesion measurements that were performed using 20 existing class cohesion metrics. The empirical study applies the metrics that were considered to five open-source systems under four different scenarios, including (1) considering all special methods, (2) ignoring only constructors, (3) ignoring only access methods, and (4) ignoring all special methods. This study empirically explores the impact of including special methods in cohesion measurement for two applications of interest to software practitioners, including refactoring and predicting faulty classes. The results of the empirical studies show that the cohesion values for most of the metrics considered differ significantly across the four scenarios and that this difference significantly affects the refactoring decisions, but does not significantly affect the abilities of the metrics to predict faulty classes.


► The paper empirically addresses whether to include or exclude special methods from cohesion measurements.
► Constructors must be included and access methods must be excluded when using cohesion metrics in Extract Class refactoring activity.
► Including special methods does not significantly affect the abilities of the cohesion metrics to detect faulty classes.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Journal of Systems and Software - Volume 85, Issue 5, May 2012, Pages 1042–1057
نویسندگان
,