no.uio.labmed.molecule
Class Molecule

java.lang.Object
  |
  +--no.uio.labmed.molecule.Molecule
Direct Known Subclasses:
Atom, Compound

public abstract class Molecule
extends java.lang.Object

An actual molecule: ie. not just a general molecular structure, but an actual instance of a given MolecularElement refering to instances of Atom for each atom in the molecule and giving the coordinates of the atoms.


Constructor Summary
Molecule()
           
 
Method Summary
abstract  MolecularElement element()
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 MolecularType getType()
           
 boolean isAtom()
           
abstract  java.util.Iterator iterator()
           
protected  java.lang.String treeString()
           
 java.lang.String treeString(int levels)
           
protected  void treeString(java.lang.StringBuffer tree, java.lang.String prefix, int levels)
           
 java.lang.String xtoString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Molecule

public Molecule()
Method Detail

element

public abstract MolecularElement element()

iterator

public abstract java.util.Iterator iterator()

isAtom

public boolean isAtom()

getName

public java.lang.String getName()

getDescription

public java.lang.String getDescription()

getType

public MolecularType getType()

treeString

protected java.lang.String treeString()

treeString

public java.lang.String treeString(int levels)

treeString

protected void treeString(java.lang.StringBuffer tree,
                          java.lang.String prefix,
                          int levels)

xtoString

public java.lang.String xtoString()