首页> 外文期刊>Software >MMRUC3: A recommendation approach of move method refactoring using coupling, cohesion, and contextual similarity to enhance software design
【24h】

MMRUC3: A recommendation approach of move method refactoring using coupling, cohesion, and contextual similarity to enhance software design

机译:MMRUC3:一种使用耦合,内聚和上下文相似性来增强软件设计的移动方法重构的推荐方法

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

摘要

Placement of methods is one of the most important design activities for any object-oriented application in terms of coupling and cohesion. Due to method misplacement, the application becomes tightly coupled and loosely cohesive, reflecting inefficient design. Therefore, a feature envy code smell emerges from the application, as many methods use more features of other classes than its current class. Hence, development and maintenance time, cost, and effort are increased. To refactor the code smell and enhance the design quality, move method refactoring plays a significant role through grouping similar behaviors of methods. This is because the manual refactoring process is infeasible due to the necessity of huge time and most of the existing techniques consider only coupling-based and/or cohesion-based information of nonstatic entities (methods and attributes) for the recommendation. However, this article proposes an approach that uses contextual information, based on information retrieval techniques, along with dependency (coupling and cohesion)-based information of the application for the recommendation. In addition, the approach incorporates both static and nonstatic entities in the recommendation process. For validation, the approach is applied on seven well-known open source projects. The results of the experimental evaluation indicate that the proposed approach provides better results with an average precision of 18.91%, a recall of 69.91%, and an F-measure of 29.77% than the JDeodorant tool (a widely used eclipse plugin for refactorings). Moreover, this article establishes several relationships between the accuracy of the approach and project standards and sizes.
机译:就耦合和内聚而言,方法的放置是任何面向对象应用程序最重要的设计活动之一。由于方法放错了位置,因此应用程序变得紧密耦合且内聚性松散,反映了低效的设计。因此,应用程序中出现了令人羡慕的功能代码气味,因为许多方法使用其他类的功能要多于其当前类。因此,增加了开发和维护时间,成本和工作量。为了重构代码味道并提高设计质量,移动方法重构通过对方法的相似行为进行分组而发挥了重要作用。这是因为由于需要大量时间,因此手动重构过程不可行,并且大多数现有技术仅考虑非静态实体(方法和属性)的基于耦合和/或基于内聚的信息作为建议。但是,本文提出了一种基于信息检索技术,使用上下文信息以及推荐应用程序基于相关性(耦合和内聚)的信息的方法。此外,该方法在推荐过程中同时包含了静态和非静态实体。为了验证,该方法应用于七个著名的开源项目。实验评估的结果表明,与JDeodorant工具(一种广泛使用的用于重构的Eclipse插件)相比,所提出的方法提供了更好的结果,平均精度为18.91%,召回率为69.91%,F度量为29.77%。此外,本文在方法的准确性与项目标准和规模之间建立了几种关系。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号