no.uio.labmed.molecule
Class AtomicElement

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

public class AtomicElement
extends MolecularElement
implements Atomic

Defines a general atom. This class extends MolecularElement, ie. defines that an atom is one kind of molecule.

In addition, the class implements the Atomic interface, to indicate that instances refere to atoms rather than compounds.

A static HashMap is generated containing the basic elements: hydrogen (H), oxygen (O), etc.


Constructor Summary
AtomicElement(java.lang.String name)
           
AtomicElement(java.lang.String name, java.lang.String desc)
           
 
Method Summary
 AtomicBondings bondings()
           
static MolecularElement get(java.lang.String name)
           
 Molecule getNew()
           
 boolean isAtom()
           
 MolecularElement map()
           
 AtomicElement set(int anum)
           
 int size()
           
 int subsize()
           
 int thissize()
           
 
Methods inherited from class no.uio.labmed.molecule.MolecularElement
getDescription, getName, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AtomicElement

public AtomicElement(java.lang.String name)

AtomicElement

public AtomicElement(java.lang.String name,
                     java.lang.String desc)
Method Detail

map

public MolecularElement map()
Overrides:
map in class MolecularElement

get

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

getNew

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

set

public AtomicElement set(int anum)

isAtom

public final boolean isAtom()
Specified by:
isAtom in class MolecularElement

bondings

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

size

public int size()
Specified by:
size in class MolecularElement

subsize

public int subsize()
Specified by:
subsize in class MolecularElement

thissize

public int thissize()
Specified by:
thissize in class MolecularElement