no.uio.labmed.molecule
Class AtomInCompound

java.lang.Object
  |
  +--no.uio.labmed.molecule.AtomInCompound
All Implemented Interfaces:
Atomic

public class AtomInCompound
extends java.lang.Object
implements Atomic

Object to identify an atom in a compound element.

As the AtomicElements of a compound may be organized in a hierarchy of CompoundElements, identifying an actual atom in a compound corresponds to giving a subelement of the compound (which may be either an atom or again a compound) and an atom therein.


Constructor Summary
AtomInCompound(CompoundElement parent, int index, Atomic atom)
           
 
Method Summary
 AtomicBondings bondings()
           
 Atomic getAtom()
           
 int getIndex()
           
 CompoundElement getParent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomInCompound

public AtomInCompound(CompoundElement parent,
                      int index,
                      Atomic atom)
Method Detail

getAtom

public Atomic getAtom()

getIndex

public int getIndex()

getParent

public CompoundElement getParent()

bondings

public AtomicBondings bondings()
Specified by:
bondings in interface Atomic