摘要
尽管模型驱动开发(MDD)代表软件工程的发展方向,但是目前MDD还缺乏一套完整的转换规则描述方法和相应的实现机制,难以实现模型的自动转换。为此定义了一个平台独立模型到平台相关模型的转换框架,采用UML活动图说明模型转换的实现机制;基于OCL定义了转换规则的表示法,并结合UML模型到Java模型的转换给出了转换规则的定义。最后在一个具体的实例中验证了此方法的合理性和易用性。
Model Driven Development(MDD) represents the direction of the software eng/neering, but so far MDD is short of an integrated transformation description and according execute mechanism. So it is difficult to implement model auto-transformation. This paper defines a transformation framework from platform independent model to platform specific model and uses UML active graph to descript the mechanism of model transformation. Then this paper defines the representation of transformation rules based on OCL and gives the rules combining with the model transformation from model defined with UML to model specified by Java. At last an application example is given to demonstrate the reasonable and convenient of this method.
出处
《计算机应用研究》
CSCD
北大核心
2005年第10期16-19,共4页
Application Research of Computers
基金
国家自然科学基金资助项目(60373086)
湖北省自然科学基金资助项目(2002ABB037)
武汉市科技重点项目(20021002043)
软件工程国家重点实验室开放基金资助项目(03-03)
关键词
模型驱动开发
模型转换
转换规则
Model Driven Development
Model Transformation
Transformation Rule