首页> 外文期刊>The international arab journal of information technology >A New Metric for Class Cohesion for Object Oriented Software
【24h】

A New Metric for Class Cohesion for Object Oriented Software

机译:面向对象软件的类凝聚的新度量

获取原文
获取原文并翻译 | 示例
       

摘要

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.
机译:在设计级别和源代码级别的文献中存在各种级别的凝聚度量,以评估面向对象(OO)软件的质量。然而,用于测量内聚力的类别变量(即属性)和方法之间的凝聚力交互(或关系)的思想从一个度量变化到另一个度量。一些作者使用类的方法使用了实例可变用法来测量类凝聚力,同时一些基于共享实例变量的方法的相似性。然而,研究人员认为,这种指标仍然没有正确捕获课程的凝聚力。因此,应制定基于不同角度对凝聚互动思想的措施。因此,在本文中,我们通过方法提出了一种基于实例变量使用的源代码级别凝聚度量。我们首先将三种类型的粘性相互作用形式形式化,然后通过为它们提供排名和重量来分类这些内聚力相互作用,以计算我们所提出的措施。为了确定所提出的措施的有用性,已经完成了使用基于属性的公理框架的理论验证。对于经验验证,我们在28个Java课程上进行了实验研究中使用了Pearson相关性分析和Logistic回归,以确定课程的拟议措施与维护之间的关系。结果表明,所提出的凝聚力措施与维护努力强烈相关,可以作为相同的良好预测因子。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号