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

计算机工程 ›› 2006, Vol. 32 ›› Issue (1): 93-95.

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

一种基于有限状态机的模型转换方法

颜玉兰,何克清,刘 进   

  1. 武汉大学软件工程国家重点实验室,武汉 430072
  • 出版日期:2006-01-05 发布日期:2006-01-05

A Method of Model Transformation Based on Finite State Machine

YAN Yulan, HE Keqing, LIU Jin   

  1. State Key Laboratory of Software Engineering, Wuhan University, Wuhan 430072
  • Online:2006-01-05 Published:2006-01-05

摘要: 为实现模型的自动转换,通过定义一个清晰的基于规则的模型转换框架,提出了一种基于有限状态机的模型转换方法,用有限状态机技术解决转换规则的实现问题,并定义了适合规则实现机制的形式表示法,然后结合UML 模型到SQL 模型转换的典型场景,通过一个模型转换示例说明模型转换方法的具体应用,结果表明了该方法的可行性和有效性。该方法适用于状态明显的模型之间的转换,促进了模型自动转换的应用和发展。

关键词: 模型驱动开发;模型转换规则;有限状态机

Abstract: For the implementation of viable model auto-transformation, this paper defines a clear model transformation architecture, it brings forward a finite-state-machine-based model transformation method, and then defines a formal representation to adapt the transformation rule’s execute mechanism. Combining with the special scene that UML model is transformed into SQL model, this paper adopts a model transformation example to demonstrate the actual application, the result demonstrates that the model transformation method is valid and feasible. The method can be used between models with obvious states, it promotes the application of the method auto-transformation.

Key words: Model driven development; Model transformation rule; Finite state machine