计算机工程 ›› 2010, Vol. 36 ›› Issue (3): 58-60.doi: 10.3969/j.issn.1000-3428.2010.03.019

• 软件技术与数据库 • 上一篇    下一篇

PIM到关系PSM的转换方法研究

何 曼,刘湘伟,郝成民   

  1. (合肥电子工程学院软件工程中心,合肥 230037)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2010-02-05 发布日期:2010-02-05

Research on Transformation Method from PIM to Relation PSM

HE Man, LIU Xiang-wei, HAO Cheng-min   

  1. (Center of Software Engineering, Electronic Engineering Institute, Hefei 230037)
  • Received:1900-01-01 Revised:1900-01-01 Online:2010-02-05 Published:2010-02-05

摘要: 针对模型驱动体系结构中的模型转换问题,提出一种从PIM关系类图到SQL关系PSM的二步转换法,通过依赖、泛化、关联
3类关系的初步转换,使其脱离关系线,得到仅与属性类型相关的PIM类图,并对不同类型的属性制定相应的转换规则,利用一个具体示例展示了转换过程及其结果。实验结果表明,与简单的关联关系转换相比,该方法更全面,能够完整实现模型转换。

关键词: 模型驱动体系结构, 模型转换, 关系, 对象约束语言

Abstract: Aiming at the model transformation problem in Model Driving Architecture(MDA), a two step transform method is proposed, which transforms PIM relation diagram to SQL PSM. It makes the depend, inherit, associate away from the relation line to PIM class diagram by the first transformation. The PIM class diagram is only about with the type of attribute. The transformation rules to different attributes are introduced. A practical example is given to show the transformation process and result. Experimental results show that, compared with the simple association transformation, this method is more comprehensive and more material, the model transformation is realized more perfectly.

Key words: Model Driving Architecture(MDA), model transformation, relation, Object Constraint Language(OCL)

中图分类号: