Automatic code generation using unified modeling language activity and sequence models

被引:13
|
作者
Viswanathan, Sunitha Edacheril [1 ]
Samuel, Philip [2 ]
机构
[1] Cochin Univ Sci & Technol, Dept Comp Sci, Kochi, Kerala, India
[2] Cochin Univ Sci & Technol, SOE, Div Informat Technol, Kochi, Kerala, India
关键词
D O I
10.1049/iet-sen.2015.0138
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A fully automatic translation of unified modeling language (UML) models to complete source code is not reported so far because some implementation details will not be there in the model, or a single UML model is not enough for complete code generation, or some model elements may not be directly convertible to source code. These issues are addressed in this study. The authors take workflow modelling and automation as the focus of their research. Hence, UML activity diagram is considered. Activity diagram alone cannot give the implementation details like object interactions. A formal association is found between activity and sequence diagrams to add object interaction details to the work flow. Moreover, the authors formulate an algorithm, Am_To_Prototype, which is composed of two subroutines named Method_Body & Excecution_Logic, to generate code from the combined model of activity and sequence diagrams consisting of concurrent activities. The authors compare the proposed method with other research outcomes with respect to workflow automation, support for concurrency, etc. The proposed algorithms are able to generate class definition, method definition and control flow. A case study is presented that demonstrates the algorithm, to generate Java code for the ATM operation.
引用
收藏
页码:164 / 172
页数:9
相关论文
共 50 条
  • [1] Automatic code generation from unified modelling language sequence diagrams
    Kundu, Debasish
    Samanta, Debasis
    Mall, Rajib
    [J]. IET SOFTWARE, 2013, 7 (01) : 12 - 28
  • [2] Automatic Generation of Programming Exercises and Code Explanations Using Large Language Models
    Sarsa, Sami
    Denny, Paul
    Hellas, Arto
    Leinonen, Juho
    [J]. PROCEEDINGS OF THE 2022 ACM CONFERENCE ON INTERNATIONAL COMPUTING EDUCATION RESEARCH, ICER 2022, VOL. 1, 2023, : 27 - 43
  • [3] 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
  • [4] Test Case Generation using Unified Modeling Language
    Shah, Syed Asad Ali
    Bukhari, Syed Shafique Ali
    Humayun, Mamoona
    Jhanjhi, N. Z.
    Abbas, Syed Fakhar
    [J]. 2019 INTERNATIONAL CONFERENCE ON COMPUTER AND INFORMATION SCIENCES (ICCIS), 2019, : 211 - 216
  • [5] Object constraint language for code generation from activity models
    Sunitha, E. V.
    Samuel, Philip
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2018, 103 : 92 - 111
  • [6] A new function block modeling language based on petri nets for automatic code generation
    Hagge, Nils
    Wagner, Bernardo
    [J]. IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS, 2005, 1 (04) : 226 - 237
  • [7] Ontology and automatic code generation on modeling and simulation
    Gheraibia, Youcef
    Bourouis, Abdelhabib
    [J]. 2012 6TH INTERNATIONAL CONFERENCE ON SCIENCES OF ELECTRONICS, TECHNOLOGIES OF INFORMATION AND TELECOMMUNICATIONS (SETIT), 2012, : 69 - 73
  • [8] Automatic generation of PLC code beyond the nominal sequence
    Guettel, Knut
    Weber, Peter
    Fay, Alexander
    [J]. 2008 IEEE INTERNATIONAL CONFERENCE ON EMERGING TECHNOLOGIES AND FACTORY AUTOMATION, PROCEEDINGS, 2008, : 1277 - +
  • [9] A Survey of Automatic Code Generation from Natural Language
    Shin, Jiho
    Nam, Jaechang
    [J]. JOURNAL OF INFORMATION PROCESSING SYSTEMS, 2021, 17 (03): : 537 - 555
  • [10] Automatic Code Generation for Language-Learning Applications
    Sebastian, Gabriel
    Tesoriero, Ricardo
    Gallud, Jose A.
    [J]. IEEE LATIN AMERICA TRANSACTIONS, 2020, 18 (08) : 1433 - 1440