Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2009, Vol. 35 ›› Issue (12): 47-49. doi: 10.3969/j.issn.1000-3428.2009.12.016

• Software Technology and Database • Previous Articles     Next Articles

Design and Implementation of Code Generator Based on MDA

YANG Mei-rong, SHI Jian-feng, LI Ming-xing   

  1. (School of Management, Harbin Institute of Technology at Weihai, Weihai 264209)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-06-20 Published:2009-06-20

基于MDA的代码生成器设计与实现

杨美荣,史建锋,李明星   

  1. (哈尔滨工业大学(威海)管理学院,威海 264209)

Abstract: Aiming at the problem that how to transform business model to code, this paper presents a design of code generator to implement code generated automatically in Model-Driven Architecture(MDA). It introduces a business object-oriented Platform Independent Model(PIM) described with XML, designs and implements a code generator which realizes the automatic transformation from PIM to code to support rapid changes of system behaviors and automatic code generation after business model changing. It illustrates the application of the code generator.

Key words: Model-Driven Architecture(MDA), Platform Independent Model(PIM), code generator

摘要: 针对如何将业务模型转换为程序代码的问题,提出一种代码生成器设计方案,用以实现模型驱动架构中代码的自动生成。介绍采用XML描述的面向业务对象的平台无关模型,在此基础上设计实现代码生成器,完成从平台无关模型到代码的自动转换,以支持在业务模型变化后系统行为的快速变化和代码的自动生成,通过实例演示该代码生成器的应用。

关键词: 模型驱动架构, 平台无关模型, 代码生成器

CLC Number: