【24h】

Towards a Valid Metric for Class Cohesion at Design Level

机译:在设计级别上建立有效的班级凝聚力度量标准

获取原文

摘要

In object oriented paradigm, cohesion of a class refers to the degree to which members of the class are interrelated. 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. Keeping in mind the anomalies in the definitions of the existing metrics, a variant of the NHD metric is introduced. It is named NHD Modified (NHDM). The metric is analyzed with the mathematical properties of cohesion metrics as proposed in research literature. An automated metric collection tool is used to collect the metric data from an open source software program. Statistical analysis of the data shows that NHDM metric takes the lowest average value in this group of four metrics. It may be due to the fact that NHDM, unlike other metrics, does not give any false positivesegatives.
机译:在面向对象的范式中,一类的凝聚力是指该类的成员相互关联的程度。设计级别的类内聚度量基于以下假设:如果类的所有方法都可以访问相似的参数类型,则它们都将处理紧密相关的信息。在其方法中具有大量公共参数类型的类比在其方法中具有较少公共参数类型的类更具凝聚力。在本文中,我们回顾了设计级别的类内聚性度量标准,特别关注那些使用类的方法的参数类型相似性作为其内聚性基础的度量标准。考虑到现有度量标准定义中的异常,引入了NHD度量标准的一种变体。它被命名为NHD Modified(NHDM)。根据研究文献中提出的内聚度量的数学属性对度量进行分析。自动度量收集工具用于从开源软件程序收集度量数据。数据的统计分析表明,在这四个指标组中,NHDM指标取最低的平均值。可能是由于与其他指标不同,NHDM不会给出任何误报/否定的事实。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号