Share Email Print
cover

Proceedings Paper

A code generation framework for the ALMA common software
Author(s): Nicolás Troncoso; Horst H. von Brand; Jorge Ibsen; Matias Mora; Victor Gonzalez; Gianluca Chiozzi; Bogdan Jeram; Heiko Sommer; Gabriel Zamora; Alexis Tejeda
Format Member Price Non-Member Price
PDF $14.40 $18.00

Paper Abstract

Code generation helps in smoothing the learning curve of a complex application framework and in reducing the number of Lines Of Code (LOC) that a developer needs to craft. The ALMA Common Software (ACS) has adopted code generation in specific areas, but we are now exploiting the more comprehensive approach of Model Driven code generation to transform directly an UML Model into a full implementation in the ACS framework. This approach makes it easier for newcomers to grasp the principles of the framework. Moreover, a lower handcrafted LOC reduces the error rate. Additional benefits achieved by model driven code generation are: software reuse, implicit application of design patterns and automatic tests generation. A model driven approach to design makes it also possible using the same model with different frameworks, by generating for different targets. The generation framework presented in this paper uses openArchitectureWare1 as the model to text translator. OpenArchitectureWare provides a powerful functional language that makes this easier to implement the correct mapping of data types, the main difficulty encountered in the translation process. The output is an ACS application readily usable by the developer, including the necessary deployment configuration, thus minimizing any configuration burden during testing. The specific application code is implemented by extending generated classes. Therefore, generated and manually crafted code are kept apart, simplifying the code generation process and aiding the developers by keeping a clean logical separation between the two. Our first results show that code generation improves dramatically the code productivity.

Paper Details

Date Published: 19 July 2010
PDF: 8 pages
Proc. SPIE 7740, Software and Cyberinfrastructure for Astronomy, 774039 (19 July 2010); doi: 10.1117/12.857039
Show Author Affiliations
Nicolás Troncoso, Associated Universities, Inc. (Chile)
Univ. Técnica Federico Santa María (Chile)
Horst H. von Brand, Univ. Técnica Federico Santa María (Chile)
Jorge Ibsen, European Southern Observatory (Chile)
Matias Mora, Associated Universities, Inc. (Chile)
Univ. Técnica Federico Santa María (Chile)
Victor Gonzalez, Associated Universities, Inc. (Chile)
Gianluca Chiozzi, European Southern Observatory (Germany)
Bogdan Jeram, European Southern Observatory (Germany)
Heiko Sommer, European Southern Observatory (Germany)
Gabriel Zamora, Univ. Técnica Federico Santa María (Chile)
Alexis Tejeda, Univ. Católica del Norte (Chile)


Published in SPIE Proceedings Vol. 7740:
Software and Cyberinfrastructure for Astronomy
Nicole M. Radziwill; Alan Bridger, Editor(s)

© SPIE. Terms of Use
Back to Top