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 条
  • [1] Automatic code generation using unified modeling language activity and sequence models
    Viswanathan, Sunitha Edacheril
    Samuel, Philip
    [J]. IET SOFTWARE, 2016, 10 (06) : 164 - 172
  • [2] A unified approach to code generation from behavioral diagrams
    Björklund, D
    Lilius, J
    Porres, I
    [J]. LANGUAGES FOR SYSTEM SPECIFICATION: SELECTED CONTRIBUTIONS ON UML, SYSTEMC, SYSTEM VERILOG, MIXED-SIGNAL SYSTEMS, AND PROPERTY SPECIFICATION FROM FDL'03, 2004, : 21 - 34
  • [3] Natural Language Processing for systems engineering: Automatic generation of Systems Modelling Language diagrams
    Zhong, Shaohong
    Scarinci, Andrea
    Cicirello, Alice
    [J]. KNOWLEDGE-BASED SYSTEMS, 2023, 259
  • [4] Automatic Code Generation From UML State Chart Diagrams
    Sunitha, E., V
    Samuel, Philip
    [J]. IEEE ACCESS, 2019, 7 : 8591 - 8608
  • [5] Generation of java code from UML sequence and class diagrams
    Kluisritrakul, Preyanoot
    Limpiyakorn, Yachai
    [J]. Lecture Notes in Electrical Engineering, 2016, 376 : 1117 - 1125
  • [6] Automatic test case generation using unified modeling language (UML) state diagrams
    Samuel, P.
    Mall, R.
    Bothra, A. K.
    [J]. IET SOFTWARE, 2008, 2 (02) : 79 - 93
  • [7] Automatic test case generation from UML sequence diagrams
    Sarma, Monalisa
    Kundu, Debasish
    Mall, Rajib
    [J]. ADCOM 2007: PROCEEDINGS OF THE 15TH INTERNATIONAL CONFERENCE ON ADVANCED COMPUTING AND COMMUNICATIONS, 2007, : 60 - +
  • [8] A Survey of Automatic Code Generation from Natural Language
    Shin, Jiho
    Nam, Jaechang
    [J]. JOURNAL OF INFORMATION PROCESSING SYSTEMS, 2021, 17 (03): : 537 - 555
  • [9] An investigation of difficulties experienced by students developing unified modelling language (UML) class and sequence diagrams
    Sien, Ven Yu
    [J]. COMPUTER SCIENCE EDUCATION, 2011, 21 (04) : 317 - 342
  • [10] Automatic Test Sequence Generation and Functional Coverage Measurement From UML Sequence Diagrams
    Ekici, Nazim Umut
    Tuglular, Tugkan
    [J]. INTERNATIONAL JOURNAL OF INFORMATION SYSTEM MODELING AND DESIGN, 2023, 14 (01)