| 本文已被:浏览 4369次 下载 6892次 |
 码上扫一扫! |
|
|
| 语义可配置的模型转换 |
|
何啸1,2,3, 麻志毅4,3, 王瑞超4,3, 邵维忠4,3
|
|
1.北京科技大学 计算机与通信工程学院, 北京 100083;2.材料领域知识工程北京市重点实验室, 北京 100083;3.高可信软件技术教育部重点实验室(北京大学), 北京 100871;4.北京大学 信息科学技术学院 软件研究所, 北京 100871
|
|
| 摘要: |
| 模型转换是模型驱动体系结构的核心技术之一.在一个复杂的模型驱动的开发过程中,可能同时使用多种转换语言及相应的工具实现转换程序.这一方面增加了开发人员的学习负担,也会导致各种兼容性问题的出现.提出一种语义可配置的模型转换技术,通过重新定义转换语言的语义,允许开发人员使用一种转换语言解决不同的转换问题.首先,总结出一组常见的转换原语;然后,利用一种基于OCL 的脚本语言TSS 来描述转换语言的语义;最后,对该方法的完全性、表达能力和复杂度进行了讨论,并通过一组案例对该方法进行了验证. |
| 关键词: 模型驱动体系结构 模型转换 转换语言 执行语义 |
| DOI:10.3724/SP.J.1001.2013.04333 |
| 分类号: |
| 基金项目:国家自然科学基金(61272159); 国家重点基础研究发展计划(973)(2011CB302604); 国家科技支撑计划(2011BAK08B04); 北京市自然科学基金(4122036); 材料领域知识工程北京市重点实验室2012 年度阶梯计划(Z121101002812005) |
|
| Semantics-Configurable Model Transformation |
|
HE Xiao1,2,3, MA Zhi-Yi4,3, WANG Rui-Chao4,3, SHAO Wei-Zhong4,3
|
|
1.School of Computer and Communication Engineering, University of Science and Technology Beijing, Beijing 100083, China;2.Beijing Key Laboratory of Knowledge Engineering for Materials Science, Beijing 100083, China;3.Key Laboratory of High Confidence Software Technologies, Ministry of Education (Peking University), Beijing 100871, China;4.Institute of Software, School of Electronics Engineering and Computer Science, Peking University, Beijing 100871, China
|
| Abstract: |
| Model transformation is a vital technique of MDA. In a complex model-driven development process, it is most likely capapble of employing multiple transformation languages, along with their corresponding tools, to develop a set of model transformations. This increases the learning costs, and also leads to some compatibility problems. The paper proposes a technique of semantics-configurable model transformation, which enables developers to solve different problems using one transformation language, by redefining the semantics of the language. First, a set of common primitive actions are proposed. Then, TSS, an OCL-based scripting language, is employed to specify the logic of a primitive action. Finally, the paper discusses the completeness, expressiveness, and complexity of this approach, and evaluates the approach with some case studies. |
| Key words: model-driven architecture model transformation transformation language executable semantics |