org.jscience.physics.nuclear.kinematics.nuclear
Class MassExcessTable

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by org.jscience.physics.nuclear.kinematics.nuclear.MassExcessTable
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class MassExcessTable
extends java.util.Hashtable

Class for storing binding energies. Has a hashtable storing binding energies (as UncertainNumber objects) with the Nucleus objects as keys. It also has a table mapping element symbols to element numbers.

See Also:
Serialized Form

Constructor Summary
MassExcessTable()
          Default constructor, necessary for loading from ObjectInputStream.
 
Method Summary
 int getElementNumber(java.lang.String s)
          Get the element number for the specified element symbol, ignoring case.
 java.util.List getIsotopes(int Z)
          Return a Vector of Nucleus objects representing the isotopes of the given element.
 UncertainNumber getMassExcess(Nucleus n)
          Get the binding energy in MeV of the specified nucleus.
 java.lang.String getSymbol(int Z)
          Get the element symbol for the specified element number.
static MassExcessTable load(TableText which)
          DOCUMENT ME!
static void main(java.lang.String[] args)
          for testing purposes only
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MassExcessTable

public MassExcessTable()
Default constructor, necessary for loading from ObjectInputStream.

Method Detail

getMassExcess

public UncertainNumber getMassExcess(Nucleus n)
Get the binding energy in MeV of the specified nucleus.

Parameters:
n - DOCUMENT ME!
Returns:
DOCUMENT ME!

getSymbol

public java.lang.String getSymbol(int Z)
Get the element symbol for the specified element number.

Parameters:
Z - DOCUMENT ME!
Returns:
element symbol if Z is valid, empty string otherwise

getElementNumber

public int getElementNumber(java.lang.String s)
                     throws NuclearException
Get the element number for the specified element symbol, ignoring case. Because of the ambiguity between "n" for neutron and "N" for nitrogen, this only returns the 7, the element number of Nitrogen, for "n" and "N".

Parameters:
s - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
NuclearException - DOCUMENT ME!

getIsotopes

public java.util.List getIsotopes(int Z)
Return a Vector of Nucleus objects representing the isotopes of the given element.

Parameters:
Z - DOCUMENT ME!
Returns:
DOCUMENT ME!

load

public static MassExcessTable load(TableText which)
DOCUMENT ME!

Parameters:
which - DOCUMENT ME!
Returns:
DOCUMENT ME!

main

public static void main(java.lang.String[] args)
for testing purposes only

Parameters:
args - DOCUMENT ME!