Practical Experiments with Code Generation from the UML Class Diagram
Janis Sejans, Oksana Nikiforova
2011
Abstract
The paper turns an attention to the problems of code generators in advanced CASE tools from the UML class diagram. Authors give a general introduction to code generator types, describes their structure and principles of operation. Three tools are analyzed within the correspondence to their abilities to generate program code from the UML class diagram. They are two modelling tools, namely, Sparx Enterprise Architect and Visual Paradigm, and the programming environment Microsoft Visual Studio .NET. Program code is generated from different fragments of the UML class diagram in all three tools and the obtained code lines are compared with the expected ones based on the model semantics and syntax of the programming language C#. Authors summarize the results of the practical experiments with code generation by stressing different types of errors in the generated code and make conclusion about the directions of the evolution of code generators in the close future.
References
- UML Unified Modelling Language Specification, OMG document http://www.omg.org.
- MDA Model Driven Architecture, OMG web-site http://www.mda.omg.org.
- Nikiforova, O., Sejans, J., Cernickins, A.: Role of UML Class Diagram in Object-Oriented Software Development, The Scientific Journal of Riga Technical University, Series Computer Science - Applied Computer Systems (2011) (in press).
- Loniewski, G., Insfran, E., Abrahao, S.: A Systematic Review of the Use of Requirements Techniques in Model-Driven Development, D.C. Petriu, N. Rouguette, O. Haugen (Eds.) the Proceedings of the 13th Conference, MODELS 2010, Model Driven Engineering Languages and Systems, Part II, Oslo, Norway (2010) pp. 213-227.
- Eichelberger, H., Schmid, K., Eldogan, Y.: A comprehensive analysis of UML tools, their capabilities and their compliance, Technical report, University of Hildesheim (2008).
- Niaz, I. A.: Automatic Code Generation From UML Class and Statechart Diagrams. PhD Thesis (2005) University of Tsukuba, Japan, p. 104.
- Usman, M., Nadeem, A.: Automatic Generation of Java Code from UML diagrams using UJECTOR (2009) International Journal of Software Engineering and its Applications, Vol.3, No.2, April, 2009.
- Herrington, J.: Code Generation in Action. Manning (2003), p. 342.
- Cernickins A., Nikiforova O., Ozols K., Sejans J. An Outline of Conceptual Framework for Certification of MDA Tools, Proceedings of the 2nd International Workshop „Model Driven Architecture and Modelling Theory Driven Development” (MDA&MTDD 2010), Osis J., Nikiforova O. (Eds.), Greece, Athens, SciTePress, Portugal (2010) pp. 60-69.
- Sejans, J., Nikiforova, O.: Problems and perspectives of code generation from UML class diagram, The Scientific Journal of Riga Technical University, Series Computer Science - Applied Computer Systems (2011) (in press).
- Sejans, J.: Analysis of Transformation Result from UML Class Diagram, Master thesis, Riga Technical University (2010).
Paper Citation
in Harvard Style
Sejans J. and Nikiforova O. (2011). Practical Experiments with Code Generation from the UML Class Diagram . In Proceedings of the 3rd International Workshop on Model-Driven Architecture and Modeling-Driven Software Development - Volume 1: MDA & MDSD, (ENASE 2011) ISBN 978-989-8425-59-1, pages 57-67
in Bibtex Style
@conference{mda & mdsd11,
author={Janis Sejans and Oksana Nikiforova},
title={Practical Experiments with Code Generation from the UML Class Diagram},
booktitle={Proceedings of the 3rd International Workshop on Model-Driven Architecture and Modeling-Driven Software Development - Volume 1: MDA & MDSD, (ENASE 2011)},
year={2011},
pages={57-67},
publisher={SciTePress},
organization={INSTICC},
doi={},
isbn={978-989-8425-59-1},
}
in EndNote Style
TY - CONF
JO - Proceedings of the 3rd International Workshop on Model-Driven Architecture and Modeling-Driven Software Development - Volume 1: MDA & MDSD, (ENASE 2011)
TI - Practical Experiments with Code Generation from the UML Class Diagram
SN - 978-989-8425-59-1
AU - Sejans J.
AU - Nikiforova O.
PY - 2011
SP - 57
EP - 67
DO -