用模块化方法辅助大型系统的移动方法重构
Using Modularity Metrics to assist Move Method Refactoring of Large System
摘要:
对于大型软件系统,重构活动可能是一项具有挑战性的任务,因为为了控制组件的复杂性,必须考虑整个体系结构以及每个组件的许多细节。因此,产品度量通常用于量化与软件系统模块化相关的几个参数。本文设计了一种自动建议重构大型软件系统的机会的方法。我们表明,通过评估所有组件的指标,移动方法重构可以建议以这样一种方式来提高几个组件的模块化,而不会阻碍任何其他。然而,当在单个CPU上执行时,包括数千个类或更多的大型软件系统的计算度量可能是耗时的任务。为此,我们提出了一种解决方案,通过诉诸GPU计算度量,从而大大缩短计算时间。由于我们的方法,在系统发展的同时,可以不断收集关于系统的几个属性的精确知识,从而帮助开发人员快速评估减少模块化问题的几个解决方案。
英文摘要:
For large software systems, refactoring activities can be a challenging task, since for keeping component complexity under control the overall architecture as well as many details of each component have to be considered. Product metrics are therefore often used to quantify several parameters related to the modularity of a software system. This paper devises an approach for automatically suggesting refactoring opportunities on large software systems. We show that by assessing metrics for all components, move methods refactoring an be suggested in such a way to improve modularity of several components at once, without hindering any other. However, computing metrics for large software systems, comprising thousands of classes or more, can be a time consuming task when performed on a single CPU. For this, we propose a solution that computes metrics by resorting to GPU, hence greatly shortening computation time. Thanks to our approach precise knowledge on several properties of the system can be continuously gathered while the system evolves, hence assisting developers to quickly assess several solutions for reducing modularity issues.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。