[Biojava-l] Proposal: ChangeType hierarchies (also event bridges)

Matthew Pocock mrp@sanger.ac.uk
Thu, 22 Feb 2001 16:43:04 +0000


Eric Blossom wrote:

> Sedgewick uses self in his Algorithms books. How about coding up an
> iterator so that users don't need getParent()? Could there be use
> for other iteraters over the tree of types?
> 
> Eric

Sounds good - much better encapsulation of the tree-root semantics. Do 
we want to let ChangeType instances explicitly know their derived types, 
(parent->child), or do we just store (child->parent)? My vote is for 
just child->parent.
M