no.uio.labmed.molecule
Class MolecularStructure

java.lang.Object
  |
  +--no.uio.labmed.molecule.MolecularStructure
Direct Known Subclasses:
AtomicElement, MolecularElement

public abstract class MolecularStructure
extends java.lang.Object

Defines a general molecular structure or substructure which may be either an atom or compound.


Constructor Summary
MolecularStructure(java.lang.String name)
           
MolecularStructure(java.lang.String name, MolecularStructureType type)
           
MolecularStructure(java.lang.String name, MolecularStructureType type, java.lang.String desc)
           
MolecularStructure(java.lang.String name, java.lang.String desc)
           
 
Method Summary
 void add()
           
static MolecularStructure get(java.lang.String name)
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 MolecularStructure getParent()
           
 MolecularStructureType getType()
           
abstract  boolean isAtom()
           
abstract  int size()
           
abstract  int subsize()
           
abstract  int thissize()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MolecularStructure

public MolecularStructure(java.lang.String name)

MolecularStructure

public MolecularStructure(java.lang.String name,
                          MolecularStructureType type)

MolecularStructure

public MolecularStructure(java.lang.String name,
                          java.lang.String desc)

MolecularStructure

public MolecularStructure(java.lang.String name,
                          MolecularStructureType type,
                          java.lang.String desc)
Method Detail

isAtom

public abstract boolean isAtom()

size

public abstract int size()

subsize

public abstract int subsize()

thissize

public abstract int thissize()

getName

public java.lang.String getName()

getType

public MolecularStructureType getType()

getDescription

public java.lang.String getDescription()

getParent

public MolecularStructure getParent()

toString

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

add

public void add()

get

public static MolecularStructure get(java.lang.String name)