...
首页> 外文期刊>Software, IET >Automatic code generation from unified modelling language sequence diagrams
【24h】

Automatic code generation from unified modelling language sequence diagrams

机译:通过统一建模语言序列图自动生成代码

获取原文
获取原文并翻译 | 示例
           

摘要

Unified modelling language (UML) is a visual modelling language, which has gained popularity among software practitioners. In a model-driven software development environment, the existing UML tools mainly support automatic generation of structural code from UML class diagrams. However, the code generation from UML diagrams such as statechart, activity, collaboration and sequence diagrams (SDs) are not supported by most UML tools and also have scarcely been reported in the literatures. This work proposes an approach to automatic generation of code from UML 2.x SDs of use cases. From the XML metadata interchange (XMI) representation of an SD of a use case, the authors construct a graph model called sequence integration graph (SIG). The SIG encapsulates information related to messages, control flow and method scope of interactions. These information are then used to generate code. The proposed approach has been tested using a number of real-life application systems and the results substantiate the efficacy of the approach to synthesise the code for controller classes. The authors observe that approximately 48% of the total lines of code within controller class methods can be generated with the proposed approach. The proposed approach can be easily extended to other behavioural UML models such as interaction-overview diagrams, communication diagrams and activity diagrams.
机译:统一建模语言(UML)是一种可视化建模语言,已在软件从业人员中流行。在模型驱动的软件开发环境中,现有的UML工具主要支持从UML类图自动生成结构代码。但是,大多数UML工具不支持从诸如状态图,活动,协作和序列图(SD)之类的UML图生成代码,并且在文献中也很少报道。这项工作提出了一种从用例的UML 2.x SD自动生成代码的方法。作者从用例的SD的XML元数据交换(XMI)表示中,构建了一个称为序列整合图(SIG)的图模型。 SIG封装了与消息,控制流和交互方法范围有关的信息。这些信息然后用于生成代码。所提出的方法已使用许多实际应用系统进行了测试,结果证实了该方法为控制器类综合代码的有效性。作者观察到,控制器类方法中大约48%的代码行可以通过提出的方法生成。所提出的方法可以很容易地扩展到其他行为UML模型,例如交互概述图,通信图和活动图。

著录项

  • 来源
    《Software, IET》 |2013年第1期|12-28|共17页
  • 作者

    Kundu D.; Samanta D.; Mall R.;

  • 作者单位

    School of Information Technology, Indian Institute of Technology, Kharagpur 721302, India;

  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号