Next: Introduction
The Translator Pattern --
External Functionality with Homomorphic Mappings
Thomas Kühne
T.Kuehne@soc.staffs.ac.uk
School of Computing, Staffordshire University, UK
address at the time of publication:
kuehne@informatik.th-darmstadt.de
Department of Computer Science
Darmstadt University of Technology
Magdalenenstr. 11c, D-64289 Darmstadt
Copyright Notice:
© 1998 IEEE. Personal use of this material is permitted. However,
permission to reprint/republish this material for advertising or promotional
purposes or for creating new collective works for resale or redistribution
to servers or lists, or to reuse any copyrighted component of this work
in other works must be obtained from the IEEE.
Abstract:
We describe how to express homomorphic translations with an object-oriented
design. This includes a uniform approach to the addition of external functionality
to data structures. We present the tradeoffs of distributing intrinsic
and extrinsic properties to data structures and external functions respectively.
A mini-architecture (design pattern) for the emulation of multi-dispatching
functions is presented in order to allow the definition of local translation
functions. Actually, we present a variant of the Visitor pattern, but add
the idea of maintaining a homomorphism between source and target and introduce
a target structure between source structure and target semantics. Combined,
these concepts pave the way to incremental evaluation.
Thomas Kuehne
1998-07-06