User 870ab5b546
04-12-2008 13:42:26
Currently, MolAtom.getLigand() is inherited from CNode, and it always returns a CNode, and if you want the MolAtom, you have to cast it back. It's counterintuitive. I suggest that MolAtom contain a getLigand() method that returns a MolAtom and overrides CNode.getLigand().
I also suggest a MolAtom.getLigands() method that returns a MolAtom[] array of all the atoms attached to the MolAtom instance. You could do the same in CNode.
Obviously there are ways of getting these values already, but these methods would add convenience.
I also suggest a MolAtom.getLigands() method that returns a MolAtom[] array of all the atoms attached to the MolAtom instance. You could do the same in CNode.
Obviously there are ways of getting these values already, but these methods would add convenience.