dwvisser.nuclear
Class Nucleus

java.lang.Object
  |
  +--dwvisser.nuclear.Particle
        |
        +--dwvisser.nuclear.Nucleus
All Implemented Interfaces:
java.io.Serializable

public class Nucleus
extends Particle
implements java.io.Serializable

Class representing atomic nuclei for the purposes of kinematics calculations.

Author:
Dale W Visser
See Also:
Serialized Form

Field Summary
 int A
          Mass number.
 UncertainNumber bindingEnergy
          The binding energy in MeV for this Nucleus object.
 UncertainNumber Ex
          Excitation of nucleus in MeV.
static UncertainNumber NEUTRON_MASS
           
static UncertainNumber PROTON_MASS
           
 int Z
          Element Number.
 
Constructor Summary
Nucleus(int Z, int A)
          Returns an object representing a particular nucleus in its ground state.
Nucleus(int Z, int A, double Ex)
          Returns an object representing a particular nucleus.
Nucleus(int Z, int A, UncertainNumber Ex)
          Default constructor, returns an object representing a particular nucleus.
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks if object represents the same isotope.
static int getElementNumber(java.lang.String symbol)
          Returns element number for the given Symbol.
 java.lang.String getElementSymbol()
          Returns element symbol for this nucleus.
static java.lang.String getElementSymbol(int z_)
          Returns element symbol for the specified element.
 UncertainNumber getGroundStateMass()
          Returns ground state mass in MeV/c^2.
static java.util.Vector getIsotopes(int Z)
          Pass through call to return all stable isotopes for this element.
 UncertainNumber getMass()
          Mass in MeV/c^2.
 int hashCode()
          Inherited from java.lang.Object for storing in a HashTable.
static void main(java.lang.String[] args)
           
static Nucleus parseNucleus(java.lang.String s)
          Parses a string like "197Au" into a Nucleus object.
 java.lang.String toString()
          Override of java.lang.Object for printing.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PROTON_MASS

public static UncertainNumber PROTON_MASS

NEUTRON_MASS

public static UncertainNumber NEUTRON_MASS

A

public int A
Mass number.


Z

public int Z
Element Number.


Ex

public UncertainNumber Ex
Excitation of nucleus in MeV.


bindingEnergy

public UncertainNumber bindingEnergy
The binding energy in MeV for this Nucleus object.

Constructor Detail

Nucleus

public Nucleus(int Z,
               int A,
               UncertainNumber Ex)
Default constructor, returns an object representing a particular nucleus.

Parameters:
Z - element number
A - mass number
Ex - excitation energy in MeV

Nucleus

public Nucleus(int Z,
               int A,
               double Ex)
Returns an object representing a particular nucleus.

Parameters:
Z - element number
A - mass number
Ex - excitation energy in MeV

Nucleus

public Nucleus(int Z,
               int A)
Returns an object representing a particular nucleus in its ground state.

Parameters:
Z - element number
A - mass number
Method Detail

getElementSymbol

public static java.lang.String getElementSymbol(int z_)
Returns element symbol for the specified element.

Parameters:
z_ - element number

getElementNumber

public static int getElementNumber(java.lang.String symbol)
Returns element number for the given Symbol.


parseNucleus

public static Nucleus parseNucleus(java.lang.String s)
Parses a string like "197Au" into a Nucleus object.


getIsotopes

public static java.util.Vector getIsotopes(int Z)
Pass through call to return all stable isotopes for this element.


getMass

public UncertainNumber getMass()
Mass in MeV/c^2.

Specified by:
getMass in class Particle

getGroundStateMass

public UncertainNumber getGroundStateMass()
Returns ground state mass in MeV/c^2.


getElementSymbol

public java.lang.String getElementSymbol()
Returns element symbol for this nucleus.


equals

public boolean equals(java.lang.Object o)
Checks if object represents the same isotope.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Inherited from java.lang.Object for storing in a HashTable.

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Override of java.lang.Object for printing.

Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)