Computer Engineering and Applications ›› 2010, Vol. 46 ›› Issue (8): 56-60.DOI: 10.3778/j.issn.1002-8331.2010.08.016

• 研发、设计、测试 • Previous Articles     Next Articles

Research on generating model transformation rules automatically

LIU Zheng-zheng,JIANG Fan,YANG Jun   

  1. Department of Computer Science and Technology,University of Science and Technology of China,Hefei 230027,China
  • Received:2009-07-22 Revised:2009-10-09 Online:2010-03-11 Published:2010-03-11
  • Contact: LIU Zheng-zheng

模型转换规则自动生成研究

刘峥峥,蒋 凡,杨 俊   

  1. 中国科学技术大学 计算机科学与技术系,合肥 230027
  • 通讯作者: 刘峥峥

Abstract: Model transformation is a key challenge in large-scale model driven engineering.It costs too much to write model transformation rules manually,at the same time,correctness can’t be ensured.A model comparison algorithm is designed to generate transformation rules automatically based on edit distance.This algorithm can deal with UML class diagrams,state diagrams and activity diagrams.It can also check the move and copy operations between models to generate minimum transformation sequences,which can raise model transformation efficiency.By experimental verification,it is feasible and fairly efficient to generate model transformation rules automatically based on this algorithm.

摘要: 在大规模的模型驱动工程中,模型转换是关键的环节,手动撰写模型转换规则既耗费资源,且正确性亦难以得到保障。针对该问题,提出基于编辑距离的模型比对算法,用于自动生成转换规则,该算法可以处理UML类图、状态图和活动图,而且可以有效地检测模型转移和复制操作,从而生成最小转换序列,提高模型转换工作效率。经过实验验证,基于该算法的模型转换规则自动生成方法是行之有效的。

CLC Number: