Automatic code generation from unified modelling language sequence diagrams

被引:22
|
作者
Kundu, Debasish [1 ]
Samanta, Debasis [1 ]
Mall, Rajib [2 ]
机构
[1] Indian Inst Technol, Sch Informat Technol, Kharagpur 721302, W Bengal, India
[2] Indian Inst Technol, Dept Comp Sci & Engn, Kharagpur 721302, W Bengal, India
关键词
Unified Modeling Language;
D O I
10.1049/iet-sen.2011.0080
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:12 / 28
页数:17
相关论文
共 50 条
  • [31] Automatic Code Generation with Document Responsibility Collaboration Modelling Method
    Tuglular, Tugkan
    Leblebici, Onur
    [J]. 2020 TURKISH NATIONAL SOFTWARE ENGINEERING SYMPOSIUM (UYMS), 2020, : 146 - 151
  • [32] Automated Change Propagation from Source Code to Sequence Diagrams
    Rastocny, Karol
    Mlyncar, Andrej
    [J]. SOFSEM 2018: THEORY AND PRACTICE OF COMPUTER SCIENCE, 2018, 10706 : 168 - 179
  • [33] Automatic Generation of VHDL Code from Traditional Ladder Diagrams Applying a Model-Driven Engineering Approach
    Alonso, D.
    Suardiaz, J.
    Navarro, P. J.
    Alcover, P. M.
    Lopez, J. A.
    [J]. IECON: 2009 35TH ANNUAL CONFERENCE OF IEEE INDUSTRIAL ELECTRONICS, VOLS 1-6, 2009, : 2280 - +
  • [34] Automatic code generation from design patterns
    Budinsky, FJ
    Finnie, MA
    Vlissides, JM
    Yu, PS
    [J]. IBM SYSTEMS JOURNAL, 1996, 35 (02) : 151 - 171
  • [35] A Tool for Automatic Code Generation from Schemas
    Gavilanes, Antonio
    Martin, Pedro J.
    Torres, Roberto
    [J]. COMPUTATIONAL SCIENCE - ICCS 2009, 2009, 5545 : 63 - 73
  • [36] Software Modelling and Automatic Code Generation Based on Reactive State Diagram
    Qu, M. C.
    Meng, L. J.
    Wu, X. H.
    Cui, N. G.
    [J]. PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON COMPUTER INFORMATION SYSTEMS AND INDUSTRIAL APPLICATIONS (CISIA 2015), 2015, 18 : 899 - 901
  • [37] Automatic Network Protocol Synthesis from UML Sequence Diagrams
    Ebeid, E.
    Fummi, F.
    Quaglia, D.
    Stefanni, F.
    [J]. 2013 14TH INTERNATIONAL WORKSHOP ON MICROPROCESSOR TEST AND VERIFICATION (MTV): COMMON CHALLENGES AND SOLUTIONS, 2013, : 68 - 73
  • [38] Code Generation from UML Activity Diagrams: State of the Art
    Lopez Sanchez, Maximo
    Rodriguez Flores, Jazmin
    Idunate Rosales, Erick L.
    [J]. CISCI 2007: 6TA CONFERENCIA IBEROAMERICANA EN SISTEMAS, CIBERNETICA E INFORMATICA, MEMORIAS, VOL I, 2007, : 133 - 136
  • [39] Modular code generation from triggered and timed block diagrams
    Lublinerman, Roberto
    Tripakis, Stavros
    [J]. PROCEEDINGS OF THE 14TH IEEE REAL-TIME AND EMBEDDED TECHNOLOGY AND APPLICATIONS SYMPOSIUM, 2008, : 147 - +
  • [40] Validated code generation for activity diagrams
    Bhattacharjee, AK
    Shyamasundar, RK
    [J]. DISTRIBUTED COMPUTING AND INTERNET TECHNOLOGY, PROCEEDINGS, 2005, 3816 : 508 - 521