no.uio.labmed.molecule
Class MolecularElement

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

public abstract class MolecularElement
extends java.lang.Object

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

The class is abstract with AtomicElement and CompoundElement as extensions: to be used if the molecule is a single atom or a compound.


Constructor Summary
MolecularElement(java.lang.String name)
           
MolecularElement(java.lang.String name, MolecularType type)
           
MolecularElement(java.lang.String name, MolecularType type, java.lang.String desc)
           
MolecularElement(java.lang.String name, java.lang.String desc)
           
 
Method Summary
static MolecularElement get(java.lang.String name)
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
abstract  Molecule getNew()
           
 MolecularType getType()
           
abstract  boolean isAtom()
           
 MolecularElement map()
           
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

MolecularElement

public MolecularElement(java.lang.String name)

MolecularElement

public MolecularElement(java.lang.String name,
                        MolecularType type)

MolecularElement

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

MolecularElement

public MolecularElement(java.lang.String name,
                        MolecularType type,
                        java.lang.String desc)
Method Detail

map

public MolecularElement map()

get

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

getNew

public abstract Molecule getNew()

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 MolecularType getType()

getDescription

public java.lang.String getDescription()

toString

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