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

Thomas Down td2@sanger.ac.uk
Thu, 22 Feb 2001 16:48:47 +0000


On Thu, Feb 22, 2001 at 04:43:04PM +0000, Matthew Pocock wrote:
> 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.

parent -> child references complicate the whole system
quite a bit, and I can't really see what they would add.

The iterator idea sounds promising, though.

   Thomas.