Generating Code for Associations Supporting Operations on Multiple Instances

Mayer Goldberg, Guy Wiener

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

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 languageAmerican English
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 201024 Jul 2010

Publication series

NameCommunications in Computer and Information Science
Volume230

Conference

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

All Science Journal Classification (ASJC) codes

  • 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