作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (03): 67-69. doi: 10.3969/j.issn.1000-3428.2007.03.025

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

基于MDA的关联关系转换方法

夏 雷,欧阳松   

  1. (中南大学信息科学与工程学院,长沙 410083)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-02-05 发布日期:2007-02-05

Method of Association Transformation Based on MDA

XIA Lei, OUYANG Song   

  1. (College of Information Science and Engineering, Central South University, Changsha 410083)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-02-05 Published:2007-02-05

摘要: 根据MDA中模型自动转换到代码的特点,提出了一种UML类图中关联关系到代码的转换方法。讨论了UML中关联关系及其两种实现模式,对每种模式分别定义了一套从UML模型(平台独立模型)到Java模型(平台相关模型)的变换规则,给出了两种实现模式按规则转换的实例。

关键词: 模型驱动构架, UML, 关联, 实现模式, 变换

Abstract: According to the specialty of automatic transformation from model to code in MDA, this paper proposes a method to transform association in UML class diagrams to code based on MDA. It discusses the association in UML and its two implementation patterns. For every pattern, it defines a suit of rules, which are used in transformation from UML model(PIM) to Java model(PSM), respectively. It presents two transformation examples of implementation pattern by using rules.    

Key words: MDA, UML, Association, Implementation pattern, Transformation