Abstract
Generating code for associations is one of the most fundamental requirements from a model-based code generator. There are several approaches for implementing associations, ranging from using basic collections frameworks to using a database. The choice between them derive from the current requirements of the software: Whether parallelism, caching or persistency required for a relation. Hard-coding a specific design choice makes it difficult to alter it later. In this work, we propose a scheme that allows for automatic code generations of associations with different features, without requiring manual changes to the code. These features include using indices, traversing the association in parallel, or using an external database. Instead of the sequential iterator interface, we propose to use an interface that is based on operations over collections, such as Foreach, Filter, Map and Fold. This interface allows for writing operations that traverse the association without being dependent on the implementation details of the generated code.
Original language | English |
---|---|
Title of host publication | ENASE 2010 - Proceedings of the 5th International Conference on Evaluation of Novel Approaches to Software Engineering |
Pages | 96-104 |
Number of pages | 9 |
State | Published - 1 Dec 2010 |
Event | 5th International Conference on Evaluation of Novel Approaches to Software Engineering, ENASE 2010 - Athens, Greece Duration: 22 Jul 2010 → 24 Jul 2010 |
Conference
Conference | 5th International Conference on Evaluation of Novel Approaches to Software Engineering, ENASE 2010 |
---|---|
Country/Territory | Greece |
City | Athens |
Period | 22/07/10 → 24/07/10 |
Keywords
- Associations
- Code generation
- Meta-programming
- Model-driven architecture
ASJC Scopus subject areas
- Software