Metrics for applying GOF design patterns in refactoring processes

Metrics for applying GOF design patterns in refactoring processes
复制标题

在重构过程中应用 GOF 设计模式的指标

DOI:
10.1145/602461.602466
复制
发表时间:
2001
期刊:
--
影响因子:
--
通讯作者:
M. Saeki
M. Saeki
中科院分区:
--
文献类型:
--
作者:
Taichi Muraki;M. Saeki

文献摘要

被引文献

相似文献

本文介绍了一种软件设计指标,可帮助我们确定四个有帮派设计模式在重构过程中的应用。使用设计模式进行重构是改善开发活动期间设计的有前途方法之一,一个至关重要的问题是确定可以应用何时,何地和哪些模式。我们分析了需要重构的几种实际面向对象的设计,并专注于方法和继承结构的条件性陈述的特征,这似乎会导致低质量。我们提供了20种措施,以客观地检测面向对象的设计中的这些特征。这些度量表达了有条件陈述中分支执行的复杂性,以及继承树中子类别之间的依赖性的强度。可以指导设计人员通过计算这些措施来重构何时,何地和哪些设计模式,以重构低质量的设计。我们将方法应用于由新手设计师生产的绘图编辑器的低质量设计,并评估了我们的措施的有效性。
This paper presents a kind of software design measures that help us to determine the application of Gang-Of-Four design patterns to refactoring processes. Refactoring using design patterns is one of the promising approaches to improve the designs during development activities, and a crucial issue is to identify when, where and which patterns could be applied. We analyzed several actual object-oriented designs of low quality needed to be refactored and focus on the characteristics of conditional statements of methods and inheritance structures, which seemed to cause the low quality. We provide 20 measures to objectively detect these characteristics in object-oriented designs. These measures express the complexity of branching execution in conditional statements and the strength of the dependency among the sub classes in the inheritance trees. Designers can be guided to recognize when, where and which design patterns should be used, in order to refactor their designs of low quality, by calculating these measures. We apply our approach to the low-quality design of the drawing editor that was produced by a novice designer and assess the effectiveness of our measures.