no.uio.labmed.molecule
Class Compound

java.lang.Object
  |
  +--no.uio.labmed.molecule.Molecule
        |
        +--no.uio.labmed.molecule.Compound

public class Compound
extends Molecule

An actual compound: ie. one refering to Atom instances.


Constructor Summary
Compound(CompoundElement element)
           
 
Method Summary
 Compound addNewElement(Molecule compound)
           
 MolecularElement element()
           
 Molecule getElement(int i)
           
 Molecule getElement(java.lang.String tag)
           
 Molecule getFinalElement(java.lang.String tag)
           
 java.util.Iterator iterator()
           
 java.lang.String toString()
           
 
Methods inherited from class no.uio.labmed.molecule.Molecule
getDescription, getName, getType, isAtom, treeString, treeString, treeString, xtoString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Compound

public Compound(CompoundElement element)
Method Detail

element

public MolecularElement element()
Specified by:
element in class Molecule

addNewElement

public Compound addNewElement(Molecule compound)

getElement

public Molecule getElement(int i)

getElement

public Molecule getElement(java.lang.String tag)

getFinalElement

public Molecule getFinalElement(java.lang.String tag)

iterator

public java.util.Iterator iterator()
Specified by:
iterator in class Molecule

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object