|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--dwvisser.nuclear.BindingEnergyTable
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.
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 |
public BindingEnergyTable()
ObjectInputStream
.
Method Detail |
public UncertainNumber getBindingEnergy(Nucleus n)
public java.lang.String getSymbol(int Z)
public int getElementNumber(java.lang.String s)
public java.util.Vector getIsotopes(int Z)
Vector
of Nucleus
objects
representing the isotopes of the given element.
public static BindingEnergyTable load()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |