Skip to main navigation Skip to search Skip to main content

Generating Code for Associations Supporting Operations on Multiple Instances

    Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

    1 Scopus citations

    Abstract

    Associations between objects are one of the most fundamental concepts in object-oriented design. The choices of how to implement associations determine how operations on the associated instances are performed: Sequentially or in parallel, with or without cached results, and with a transient or persistent effect. In this work, we propose a scheme that allows for generated code to support different methods of operating on associated instances, without requiring changes to the client code. These methods include using indices, traversing the association in parallel, or using a database. Instead of the sequential iterator interface, we propose to use an interface that include operations over multiple instances: Foreach, Filter, Map and Fold. This interface allows for realizing designs that involve sending messages to multiple associated instances, such as UML sequence and communication diagrams. The realization does not depend on the implementation details of the associations.

    Original languageEnglish
    Title of host publicationEvaluation of Novel Approaches to Software Engineering - 5th International Conference, ENASE 2010, Revised Selected Papers
    EditorsLeszek A. Maciaszek, Pericles Loucopoulos
    Pages163-177
    Number of pages15
    DOIs
    StatePublished - 1 Dec 2011
    Event5th International Conference Evaluation of Novel Approaches to Software Engineering, ENASE 2010 - Athens, Greece
    Duration: 22 Jul 2010 → 24 Jul 2010

    Publication series

    NameCommunications in Computer and Information Science
    Volume230
    ISSN (Print)1865-0929

    Conference

    Conference5th International Conference Evaluation of Novel Approaches to Software Engineering, ENASE 2010
    Country/TerritoryGreece
    CityAthens
    Period22/07/10 → 24/07/10

    ASJC Scopus subject areas

    • General Computer Science
    • General Mathematics

    Fingerprint

    Dive into the research topics of 'Generating Code for Associations Supporting Operations on Multiple Instances'. Together they form a unique fingerprint.

    Cite this