کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
491011 719050 2012 5 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Theoretical Analysis for the Impact of Including Special Methods in Lack-of-Cohesion Computation
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر علوم کامپیوتر (عمومی)
پیش نمایش صفحه اول مقاله
Theoretical Analysis for the Impact of Including Special Methods in Lack-of-Cohesion Computation
چکیده انگلیسی

Classes are the basic units in object-oriented programs, and therefore, their quality has impact on the overall quality of the software. Class cohesion is an object-oriented software internal key quality attribute, and it refers to the degree of relatedness of class members. Software developers use class cohesion measure to guide the restructuring of poorly designed classes and assess the quality of the software products. Several class cohesion metrics are proposed in the literature, and the impact of considering the special methods (i.e., constructors, destructors, and access and delegation methods) in cohesion calculation is not thoroughly theoretically studied for most of them. In this paper, we address this issue for five popular class lack-of-cohesion metrics. For each of the considered metrics we theoretically study the impact of including or excluding special methods on the values that are obtained by applying the metric. This study is based on analyzing the definitions and formulas that are proposed for the metrics. The results show that including/excluding special methods has a considerable effect on the obtained cohesion values and that this effect varies from one metric to another. The study shows the importance of considering the types of methods that have to be accounted for when proposing a cohesion metric.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Procedia Technology - Volume 1, 2012, Pages 167-171