dwvisser.nuclear
Class BindingEnergyTable

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--dwvisser.nuclear.BindingEnergyTable
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class BindingEnergyTable
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
BindingEnergyTable()
          Default constructor, necessary for loading from ObjectInputStream.
 
Method Summary
 UncertainNumber getBindingEnergy(Nucleus n)
          Get the binding energy in MeV of the specified nucleus.
 int getElementNumber(java.lang.String s)
          Get the element number for the specified element symbol, ignoring case.
 java.util.Vector getIsotopes(int Z)
          Return a Vector of Nucleus objects representing the isotopes of the given element.
 java.lang.String getSymbol(int Z)
          Get the element symbol for the specified element number.
static BindingEnergyTable load()
           
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

BindingEnergyTable

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

Method Detail

getBindingEnergy

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


getSymbol

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


getElementNumber

public int getElementNumber(java.lang.String s)
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".


getIsotopes

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


load

public static BindingEnergyTable load()

main

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