العودة إلى موقع المجلة ←
مجلة الرفاق للمعرفة العدد السادس — علوم تطبيقية — ص 1–13

دراسة تجريبية للمقارنة بين مقياس Lack of Cohesion in Cohesion on Method and ومقياس Methods (Lcom5( Attribute (COMA).

An Experimental Study Comparing the Lack of Cohesion in Methods (LCOM5) Metric and the Cohesion on Method Attribute (COMA) Metric

يونس عبد الصمد

DOI: https://doi.org/10.64489/aj5wyv76

الملخص

الملخص تقدم هذه الورقة البحثية دراسة تجريبية حول مقارنة مقياس التماسك (LCOM) ومقياس (COMA)، حيث إن مقياس (LCOM) يستند في عمله على حساب عدد أزواج الطرق التي لا تشترك السمات في أصنافها ؛ أما بالنسبة لمقياس (COMA) والذي يعتمد في عمله على استعمال الخاصّيَّة، واستعمال الطريقة المستدعاة، وكذلك على التفاعل المباشر بين الخاصية، والطريقة، والطرق مع بعضها. ويستعمل هذا المقياس في مستوى التصميم البرمجي، والغرض من الدراسة: هو تحديد عيوب مقياس (Lcom5 ) ومعالجتها، والتي تتمثل في عدم قدرة المقياس على حساب تماسك الطرق في الأصناف (CLASS)، واعتمدت في المنهجية على تصميم أداة باستخدام (#C) تقوم بعملية حساب تماسك البرنامج الشيئي بـ LCOM5 و COMA حيث نستنتج من هذا القياس أن (LCOM) لا يُفرّق - بشكل صحيح . التماسك بين الفئات أو الأصناف، بينما يحسب (COMA) ذلك، وهذا يُحقق الفرضية بأن مقياس (LCOM5) ليس له القدرة على حساب التماسك الحقيقي في الأصناف؛ بينما مقياس (COMA) يقوم بذلك. الكلمات المفتاحية: (التماسك المقاييس البرمجية، مقاييس التمسك).

Abstract

Abstract This paper presents an experimental study on the comparison between the LCOM5 cohesion metric and the COMA metric, The LCOM5 metric is based on the calculation of a number Pairs of roads with no traits in common. Software metrics can help address the most critical issues in software development and can provide support for planning, predicting, monitoring, controlling, and evaluating the quality of both software products and processes. Quite a number of object oriented cohesion metrics have been proposed; we identified lapses in the definition of some of the object-oriented cohesion metrics. In this paper we propose a new metric for measuring cohesion at the design level. The purpose of the study is to identify and address the defects of the LCOM5 metric The methodology relied on designing a tool using C# that calculates the consistency of the object-oriented program with LCOM5 and COMA. we can see that LCOM5 is solely based on attribute referencing and thus will not show an increase in the cohesion of a class where there is method invocation in addition to attribute referencing, Unlike COMA, LCOM5 could not differentiate between the cohesion of this class But COMA was able to differentiate between the cohesion of these classes.

تحميل PDF موقع المجلة