Towards Automating Source-Consistent UML Refactorings

Towards Automating Source-Consistent UML Refactorings
复制标题

迈向自动化源一致的 UML 重构

DOI:
10.1007/978-3-540-45221-8_15
复制
发表时间:
2003
期刊:
WIT Transactions on State-of-the-art in Science and Engineering
影响因子:
--
通讯作者:
S. Demeyer
S. Demeyer
中科院分区:
--
文献类型:
--
作者:
P. V. Gorp;Hans Stenten;T. Mens;S. Demeyer

文献摘要

被引文献

相似文献

随着人们对重构的兴趣日益浓厚,UML 工具供应商寻求各种方法来支持软件开发人员应用重构(序列)。此类工具的问题在于,它们的存储库所基于的 UML 元模型不足以在其中之一被重构时维持模型和代码之间的一致性。因此,我们提出了一组对 UML 元模型的最小扩展,这足以推理所有常见 OO 语言的重构。例如,通过在 OCL 中指定前置条件和后置条件,我们能够编写原始重构、验证程序行为的保留以及根据代码气味触发重构。通过这种方式,我们为未来的 MDA 工具提供了改进现有 UML 设计的能力,同时使它们与底层代码库保持同步。
With the increased interest in refactoring, UML tool vendors seek ways to support software developers in applying a (sequence of) refactoring(s). The problem with such tools is that the UML metamodel – on which their repository is based – is inadequate to maintain the consistency between the model and the code while one of them gets refactored. Therefore, we propose a set of minimal extensions to the UML metamodel, which is sufficient to reason about refactoring for all common OO languages. For instance, by specifying pre- and postconditions in OCL, we are able to compose primitive refactorings, verify preservation of program behavior, and trigger refactorings based on code smells. This way, we provide future MDA tools with the ability to improve existing UML designs, yet keeping them in synch with the underlying code base.