一种基于语义的God类检测与分解方法
A Semantic-Based Approach for Detecting and Decomposing God Classes
摘要:
内聚是一个核心的设计质量,对后期开发和维护有很大的影响。由于软件的本质,系统的内聚性随着系统的发展而减弱。God类是软件演化过程中产生的代码缺陷,具有异构的职责,与其他类高度耦合,并且通常规模较大,这给系统的维护带来了困难。现有的识别和分解God类的工作严重依赖于内部类信息来识别God类和职责。然而,在面向对象的系统中,不仅要分析内部类信息,还要分析方法交互。在本文中,我们提出了一种新的方法来检测上帝类和分解其责任的基础上的语义方法和方法的相互作用。我们使用JMeter v2.5.1评估的方法,结果是有希望的。
英文摘要:
Cohesion is a core design quality that has a great impact on posterior development and maintenance. By the nature of software, the cohesion of a system is diminished as the system evolves. God classes are code defects resulting from software evolution, having heterogeneous responsibilities highly coupled with other classes and often large in size, which makes it difficult to maintain the system. The existing work on identifying and decomposing God classes heavily relies on internal class information to identify God classes and responsibilities. However, in object-oriented systems, responsibilities should be analyzed with respect to not only internal class information, but also method interactions. In this paper, we present a novel approach for detecting God classes and decomposing their responsibilities based on the semantics of methods and method interactions. We evaluate the approach using JMeter v2.5.1 and the results are promising.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。