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

计算机工程 ›› 2009, Vol. 35 ›› Issue (12): 47-49. doi: 10.3969/j.issn.1000-3428.2009.12.016

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

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

杨美荣,史建锋,李明星   

  1. (哈尔滨工业大学(威海)管理学院,威海 264209)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-06-20 发布日期:2009-06-20

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

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

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

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

中图分类号: