Generating the body of the methods from class diagram operation semantics
Generación del cuerpo de los métodos a partir de la semántica de las operaciones del diagrama de clases
DOI:
https://doi.org/10.15446/ing.investig.v28n3.15121Keywords:
code generation, UML, pre-condition, post-condition, development platform (en)generación de código, UML, precondición, poscondición, plataforma de desarrollo (es)
Downloads
Well-known CASE tools only generate the heading of the methods to automatically generate source code from UML diagrams. Some proposals partially generate the body of the methods; however, they use non-standard modeling elements or hand-made source code elements. This paper proposes a process for generating the body of the methods from class diagram operations in an attempt to overcome such constraints. “Semantics of class operations” was thus defined as a way of linking class diagram operations to development platform implemented methods. These kinds of semantics use pre- and post-conditions belonging to the operations and the development platform library meta-model. This process is also exemplified by giving a case study. An UML instance of the java.sql package meta-model was created for developing the case study.
Para la generación automática de código fuente a partir de los diagramas de UML, las herramientas CASE convencionales sólo generan el encabezado de los métodos, y algunos esfuerzos adicionales generan parcialmente el cuerpo de los métodos, pero empleando elementos que se alejan de los estándares de modelado y, en todo caso, muy cercanos a la elaboración manual de código fuente. Buscando superar esas limitaciones, en este artículo se propone un proceso para generar el cuerpo de los métodos del código fuente a partir de las operaciones del diagrama de clases. Para ello se define la “semántica de las operaciones”, que es una manera de ligar las operaciones del diagrama de clases y los métodos implementados en la plataforma de desarrollo, tomando como entradas el pre y poscondiciones de las operaciones y el metamodelo de las librerías de la plataforma de desarrollo. Finalmente, el proceso se ejemplifica con un caso de estudio, para el cual fue necesario elaborar una instancia en UML del metamodelo del paquete java.sql.
References
Aronson, J., Grossman, M., Does UML Make the Grade? Insights from the software development community., Inf. and Soft. Tech., Vol. 47, No. 6, 2005, pp. 383-397. DOI: https://doi.org/10.1016/j.infsof.2004.09.005
Borland Software Corporation., Borland Together Architect®. En: http://www.borland.com/us/products/together/index.html (Consultado Abril de 2008).
Geiger, L., Zündorf, A., Statechart Modeling with Fujaba., Electronic Notes in Theoretical Computer Science, Vol. 127, 2005, pp. 37-49. DOI: https://doi.org/10.1016/j.entcs.2004.12.029
Geiger, L., Zündorf, A., Tool Modeling with Fujaba, Electronic Notes in Theoretical Computer Science., Vol. 148, 2006, pp. 173-186. DOI: https://doi.org/10.1016/j.entcs.2005.12.017
IBM Corporation., Rational Rose Architect®., En: http://www-306.ibm.com/software/awdtools/architect/swarchitect/index.html (Consultado Abril de 2008).
Laleau, R., Mammar, A., From a B formal specification to an executable code: applicational to the relational database domain., Inf. and Soft. Tech., Vol. 48, No. 4, 2005, pp. 253-279. DOI: https://doi.org/10.1016/j.infsof.2005.05.002
Liu, Z. y Jifeng, H., Towards a Rigorous Approach to UML Based Development., Electronic Notes in Theoretical Computer Science, Vol. 130, 2005, pp. 57-77. DOI: https://doi.org/10.1016/j.entcs.2005.03.005
Morgan, C., Programming from Specifications., Second Edition, Hempstead, Prentice Hall International, 1998.
OMG., Object Management Group. UML data modelling profile., En: http://www.omg.org/cgi-bin/doc?ab/05-12-02 (Consultado Abril de 2008).
University of Paderborn., Software Engineering Group. FUJABA Tools Suite., En: http://wwwcs.uni-paderborn.de/cs/fujaba/index.html (Consultado Abril de 2008).
How to Cite
APA
ACM
ACS
ABNT
Chicago
Harvard
IEEE
MLA
Turabian
Vancouver
Download Citation
CrossRef Cited-by
Dimensions
PlumX
Article abstract page views
Downloads
License
Copyright (c) 2008 Carlos Mario Zapata Jaramillo, Andrés Felipe Muñetón

This work is licensed under a Creative Commons Attribution 4.0 International License.
The authors or holders of the copyright for each article hereby confer exclusive, limited and free authorization on the Universidad Nacional de Colombia's journal Ingeniería e Investigación concerning the aforementioned article which, once it has been evaluated and approved, will be submitted for publication, in line with the following items:
1. The version which has been corrected according to the evaluators' suggestions will be remitted and it will be made clear whether the aforementioned article is an unedited document regarding which the rights to be authorized are held and total responsibility will be assumed by the authors for the content of the work being submitted to Ingeniería e Investigación, the Universidad Nacional de Colombia and third-parties;
2. The authorization conferred on the journal will come into force from the date on which it is included in the respective volume and issue of Ingeniería e Investigación in the Open Journal Systems and on the journal's main page (https://revistas.unal.edu.co/index.php/ingeinv), as well as in different databases and indices in which the publication is indexed;
3. The authors authorize the Universidad Nacional de Colombia's journal Ingeniería e Investigación to publish the document in whatever required format (printed, digital, electronic or whatsoever known or yet to be discovered form) and authorize Ingeniería e Investigación to include the work in any indices and/or search engines deemed necessary for promoting its diffusion;
4. The authors accept that such authorization is given free of charge and they, therefore, waive any right to receive remuneration from the publication, distribution, public communication and any use whatsoever referred to in the terms of this authorization.