Published

2008-09-01

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.15121

Keywords:

code generation, UML, pre-condition, post-condition, development platform (en)
generación de código, UML, precondición, poscondición, plataforma de desarrollo (es)

Authors

  • Carlos Mario Zapata Jaramillo Universidad Nacional de Colombia
  • Andrés Felipe Muñetón Universidad Nacional de Colombia

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

Zapata Jaramillo, C. M. and Muñetón, A. F. (2008). Generating the body of the methods from class diagram operation semantics. Ingeniería e Investigación, 28(3), 58–63. https://doi.org/10.15446/ing.investig.v28n3.15121

ACM

[1]
Zapata Jaramillo, C.M. and Muñetón, A.F. 2008. Generating the body of the methods from class diagram operation semantics. Ingeniería e Investigación. 28, 3 (Sep. 2008), 58–63. DOI:https://doi.org/10.15446/ing.investig.v28n3.15121.

ACS

(1)
Zapata Jaramillo, C. M.; Muñetón, A. F. Generating the body of the methods from class diagram operation semantics. Ing. Inv. 2008, 28, 58-63.

ABNT

ZAPATA JARAMILLO, C. M.; MUÑETÓN, A. F. Generating the body of the methods from class diagram operation semantics. Ingeniería e Investigación, [S. l.], v. 28, n. 3, p. 58–63, 2008. DOI: 10.15446/ing.investig.v28n3.15121. Disponível em: https://revistas.unal.edu.co/index.php/ingeinv/article/view/15121. Acesso em: 7 mar. 2025.

Chicago

Zapata Jaramillo, Carlos Mario, and Andrés Felipe Muñetón. 2008. “Generating the body of the methods from class diagram operation semantics”. Ingeniería E Investigación 28 (3):58-63. https://doi.org/10.15446/ing.investig.v28n3.15121.

Harvard

Zapata Jaramillo, C. M. and Muñetón, A. F. (2008) “Generating the body of the methods from class diagram operation semantics”, Ingeniería e Investigación, 28(3), pp. 58–63. doi: 10.15446/ing.investig.v28n3.15121.

IEEE

[1]
C. M. Zapata Jaramillo and A. F. Muñetón, “Generating the body of the methods from class diagram operation semantics”, Ing. Inv., vol. 28, no. 3, pp. 58–63, Sep. 2008.

MLA

Zapata Jaramillo, C. M., and A. F. Muñetón. “Generating the body of the methods from class diagram operation semantics”. Ingeniería e Investigación, vol. 28, no. 3, Sept. 2008, pp. 58-63, doi:10.15446/ing.investig.v28n3.15121.

Turabian

Zapata Jaramillo, Carlos Mario, and Andrés Felipe Muñetón. “Generating the body of the methods from class diagram operation semantics”. Ingeniería e Investigación 28, no. 3 (September 1, 2008): 58–63. Accessed March 7, 2025. https://revistas.unal.edu.co/index.php/ingeinv/article/view/15121.

Vancouver

1.
Zapata Jaramillo CM, Muñetón AF. Generating the body of the methods from class diagram operation semantics. Ing. Inv. [Internet]. 2008 Sep. 1 [cited 2025 Mar. 7];28(3):58-63. Available from: https://revistas.unal.edu.co/index.php/ingeinv/article/view/15121

Download Citation

CrossRef Cited-by

CrossRef citations0

Dimensions

PlumX

Article abstract page views

346

Downloads