论文标题
使用字符串匹配算法检测模型转换中设计模式的通用方法
A Generic Approach to Detect Design Patterns in Model Transformations Using a String-Matching Algorithm
论文作者
论文摘要
维护软件工件是工程师面对的最艰巨的任务之一。像其他任何代码一样,工程师开发的模型转换也需要维护。为了促进程序的理解,软件工程师依赖许多技术,例如设计模式检测。因此,在模型转换实现中检测设计模式对开发人员具有巨大的价值。在本文中,我们提出了一种通用技术,以自动检测设计模式及其在模型转换实现中的变化。它以输入为一组模型转换规则,以及模型转换设计模式的参与者,以查找后者的出现。该技术还检测到某些模式的退化形式,从而表明了改善模型转换实施的潜在机会。
Maintaining software artifacts is among the hardest tasks an engineer faces. Like any other piece of code, model transformations developed by engineers are also subject to maintenance. To facilitate the comprehension of programs, software engineers rely on many techniques, such as design pattern detection. Therefore, detecting design patterns in model transformation implementations is of tremendous value for developers. In this paper, we propose a generic technique to detect design patterns and their variations in model transformation implementations automatically. It takes as input a set of model transformation rules and the participants of a model transformation design pattern to find occurrences of the latter in the former. The technique also detects certain kinds of degenerate forms of the pattern, thus indicating potential opportunities to improve the model transformation implementation.