计算机应用 ›› 2010, Vol. 30 ›› Issue (9): 2354-2357.

• 软件过程技术 • 上一篇    下一篇

模型驱动构架中基于元模型的设计模式单元的组建和转换

杨长春1,赵子艺2,孙婧3   

  1. 1. 江苏工业学院
    2. 江苏工业学院信息科学与工程学院
    3. 常州大学 信息科学与工程学院
  • 收稿日期:2010-03-23 修回日期:2010-05-20 发布日期:2010-09-03 出版日期:2010-09-01
  • 通讯作者: 赵子艺

Meta-model-based model organization and transformation of design pattern unit in MDA

  • Received:2010-03-23 Revised:2010-05-20 Online:2010-09-03 Published:2010-09-01

摘要: 设计模式种类繁多而且在不断变化,要在模型驱动构架(MDA)下真正做到从思想和实现上均能应用设计模式,需要解决其实例化后的模式消失问题,保证模式的独立性,并且可以将这个过程适用到多种设计模式中去。针对以上两个问题,采取一种基于元模型的设计模式单元的建模方法,从元模型层面划分基本操作为不可分的原子,组合出完整的不包含业务逻辑部分的设计模式单元元模型,使多种模式单元元模型的组合构建和业务、模式逻辑相分离在经过一次转换过程后同时实现。

关键词: 模型驱动构架, 平台无关模型, 元模型, 设计模式, 模型组建

Abstract: Design patterns are various in kind and constantly change. To achieve the purpose of applying design patterns to Model Driven Architecture (MDA) from idea and application, one way is used to solve the problem of pattern disappearance which comes into being at the process of pattern instantiation, and guarantee the independence of patterns, at the same time apply this process to multiple design patterns. To solve these two problems, the authors took the modeling method of design pattern unit based on meta-model, divided basic operations into atoms in the meta-model tier and then combined the atoms to complete design pattern units meta-models without business logic. Then after one process of conversion, it realized the purpose of making up various pattern units meta-model as well as dividing business logic and pattern logic at the same time.

Key words: Model Driven Architecture (MDA), Platform Independent Model (PIM), meta-model, design pattern, model organization

中图分类号: