摘要
在大规模的模型驱动工程中,模型转换是关键的环节,手动撰写模型转换规则既耗费资源,且正确性亦难以得到保障。针对该问题,提出基于编辑距离的模型比对算法,用于自动生成转换规则,该算法可以处理UML类图、状态图和活动图,而且可以有效地检测模型转移和复制操作,从而生成最小转换序列,提高模型转换工作效率。经过实验验证,基于该算法的模型转换规则自动生成方法是行之有效的。
Model transformation is a key challenge in large-scale model driven engineering.h 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.
出处
《计算机工程与应用》
CSCD
北大核心
2010年第8期56-60,95,共6页
Computer Engineering and Applications
基金
国家高技术研究发展计划(863)Grant No.2009AA01Z145~~
关键词
模型转换
模型比对
编辑距离
model transformation
model comparison
edit distance