[关键词]
[摘要]
虽然UML2.0标准被OMG组织采纳已久,但由于UML1.X标准在工业界的广泛使用,仍然存在大量的实用模型和应用软件,它们在UML2.0标准之下已不能准确描述系统.UML2.0建模工具并不支持从UML1.X模型到UML2.0模型的转换.从顶层元模型的角度比较了这两个版本的不同,采用声明式和命令式混合的模型框架,给出了一种基于动作语义的UML模型转换方法,并用ASL描述交互元模型的转换实例,验证了方法的可行性.该方法将减少用户的重复劳动,实现软件的模型重用,也适用于其他元模型或模型层次上的转换.
[Key word]
[Abstract]
UML2.0 standard has been adopted by the OMG for a long time. However due to the popularity of UML1.X in industry, a huge number of practical applications and models based on UML1.X still exist, and they are no longer an accurate description of the systems under the UML2.0. Today, many tools support the modeling with UML2.0, but none of them supports the transformation from UML1.X models to UML2.0 models. This paper compares the differences between the two versions from the top-level of metamodel, chooses a declarative and imperative hybrid framework, and presents a UML model transformation method based on Action Semantic. It also describes the transformation of the Interaction metamodel with Action Semantic Language, which proves the feasibility of the approach. This approach can reduce the repeated work of the user and realize the reuse of software models, and can also be applied to other metamodel or model transformations.
[中图分类号]
[基金项目]
Supported by the National Natural Science Foundation of China under Grant No.60373086 (国家自然科学基金); the Wuhan Science & Technique Key Project Foundation of China under Grant No.20021002043 (武汉市科技重点项目) ; the Natural Science Foundation of Hubei Province of China under Grant No.2002ABB037 (湖北省自然科学基金); the Open Foundation of SKLSE of China under Grant No.03-03 (软件工程国家重点实验室开放基金)