Method based on layered programming to generate code automatic from the class diagram
DOI:
https://doi.org/10.15381/rpcs.v2i2.17015Keywords:
Programming Technique, UML, Layer Architecture, Code Generation MethodAbstract
The greatest effort in the development of web applications is focused on the generation of code manually based on a programming language. On the other hand, research works focus on solving design problems, while CASE tools generate limited or incomplete codes without formal specifications for web application development. This article proposes a method based on layered programming to generate code automatically from the UML class diagram for web applications. In this way, the class diagram file is analyzed and the respective code is generated. A design model has been defined as a meta-model, which has the formalism of layered programming and is represented by a profile with XML extension, in this way, the lines of XML code are extracted from the file that contains the diagram of classes, are compared with the meta-model through algorithms and then the code is generated automatically. To validate the proposal, an application completed with the objective of comparing between the process of automatic code generation and manual code generation was used, resulting in the code generation being reduced by up to 98%.
Downloads
Published
Issue
Section
License
Copyright (c) 2020 Adolfo Hans Vega Fajardo
![Creative Commons License](http://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png)
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
THE AUTHORS RETAIN THEIR RIGHTS:
(a) The authors retain their trademark and patent rights, and also over any process or procedure described in the article.
(b) The authors retain the right to share, copy, distribute, execute and publicly communicate the article published in the Revista Peruana de Computación y Sistemas (for example, place it in an institutional repository or publish it in a book), with acknowledgment of its initial publication in Revista Peruana de Computación y Sistemas.
(c) Authors retain the right to make a subsequent publication of their work, to use the article or any part of it (for example: a compilation of their work, lecture notes, thesis, or for a book), provided that they indicate the source. of publication (authors of the work, magazine, volume, number and date).