摘要
AndroMDA是一种支持模型驱动架构的开发工具,模型转换组件是其实现从模型到代码的转换的核心部件。在应用AndroMDA进行系统开发时,往往需要对其模型转换组件进行定制,以生成满足特定需要的代码。文中提出了一种对AndroMDA的模型转换组件进行扩展的方法,并使用该方法对模型转换组件Bpm4Struts Cartridge进行了扩展。使用扩展后的Bpm4Struts Cartridge可以从UML状态图生成基于Struts框架和Ajax框架DWR的代码,从而实现了在UML模型中可视化地应用Ajax技术的目标。
AndroMDA is a development tool which assists MDA. Model transition component (MTC) is the core component which realizes the transition frcrn model to code. In the development process using AndroMDA, developers often need to customize MTCs in order to generate code fulfilled demanding. Presents a method of extending the MTCs of AndroMDA, and extends the MTC named Bpm4Struts Cartridge. The extended Bpm4Struts Cartridge can generate code based on Struts framework and an Ajax framework named DWR from activity diagram, so realize the goal of applying Ajax technology visually in UML model.
出处
《计算机技术与发展》
2008年第4期74-76,79,共4页
Computer Technology and Development