摘要
模型信息转换是目前软件工程领域比较热门的研究方向,将UML模型信息转换成XMI中间标准格式,能够实现模型到模型转换,模型到代码自动生成,加快系统开发进度,提高软件质量。提出一种UML用例图到XMI的映射算法。首先介绍了MDA,UML,XMI以及用例图等基本概念,然后对XMI Schema抽象模型进行形式化描述,并根据XMI模式定义和UML用例图映射规则对映射算法进行具体描述。最后通过一个具体的泛化用例图到XMI的映射实例进行算法验证。
Model information transformation is one of the popular research direction in the field of software engineering.Transforming the UML model information into XMI standard format can realize transformation between models and generating code from model automatically,speed up the progress of system development and improve the quality of software.Proposes a method of UML use case diagram mapping to XMI. Firstly introduced some basic concepts,such as MDA,UML,XMI,use case diagram. Then formalized the abstraction model of XMI Schema,and represented the mapping algorithm according to XMI schema definition and the mapping rules for UML use case diagrams. Finally verified the algorithm by using a specific example of the generalized use case diagram mapping to XMI.
引文
[1]Object Management Group.MDA Specifications[DB/OL].http://www.omg.org/mda/specs.htm.July,2002.
[2]Anneke Kleppe,Jos Warmer,Wim Bast.解析MDA[M].北京:人民邮电出版社,2004:5-17.
[3]Martin Soukup.Model Driven Architecture:Feasibilityor Fallacy[R/OL].http://www.ideal liance.org/proceedings/xml04/papers/200/MDA_Feasibility.Xml,2004.
[4]David Frankel.Software Industrialization.A Perspective on MDA[R/OL].http://www.Peoplewarecn.com/webcast/David Frankel Software Indust rialization.Pdf,2003.
[5]冯英英.基于MDA的代码生成技术的研究与应用[D].西安:西安电子科技大学,2011:5-6.
[6]刘征驰.基于UML的层次软件体系结构模型研究与应用[D].长沙:湖南大学,2004:19-20.
[7]Timothy J.Grose,Gary C.Doney,Stephen A.Brodsky.Mastering XMI:Java Programming with XMI,XML and UML[M].Wiley Computer Publishing,2002:3-116.
[8]Grady Booch、James Rumbaugh、lvar Jacobson,The Unified Modeling Language Reference Manual.
[9]李海峰,金吴,吴介一.采用XMI标准实现UML模型到XML的转换[J].制造业自动化,2003,5(04):12-16.
[10]王伟良,施佺,曹渠江.基于XML Schema抽象模型的XML模式验证方法[J].计算机应用与软件,2007,24(03):41-43.