GENERATING FLEXIBLE CODE FOR ASSOCIATIONS

Mayer Goldberg, Guy Wiener

2010

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.

Download


Paper Citation


in Harvard Style

Goldberg M. and Wiener G. (2010). GENERATING FLEXIBLE CODE FOR ASSOCIATIONS . In Proceedings of the Fifth International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE, ISBN 978-989-8425-21-8, pages 96-104. DOI: 10.5220/0002999700960104

in Bibtex Style

@conference{enase10,
author={Mayer Goldberg and Guy Wiener},
title={GENERATING FLEXIBLE CODE FOR ASSOCIATIONS},
booktitle={Proceedings of the Fifth International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,},
year={2010},
pages={96-104},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0002999700960104},
isbn={978-989-8425-21-8},
}


in EndNote Style

TY - CONF
JO - Proceedings of the Fifth International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,
TI - GENERATING FLEXIBLE CODE FOR ASSOCIATIONS
SN - 978-989-8425-21-8
AU - Goldberg M.
AU - Wiener G.
PY - 2010
SP - 96
EP - 104
DO - 10.5220/0002999700960104