public class PeriodicTable extends Object
| Modifier and Type | Field and Description |
|---|---|
static Atom |
C |
static double |
C_MASS |
static Atom |
C13 |
static double |
C13_MASS |
static Atom |
Ca |
static double |
Ca_MASS |
static Atom |
Cu |
static double |
Cu_MASS |
static double |
ELECTRON_MASS |
static Atom |
Fe |
static double |
Fe_MASS |
static Atom |
H |
static double |
H_MASS |
static Atom |
I |
static double |
I_MASS |
static Atom |
K |
static double |
K_MASS |
static Atom |
Mg |
static double |
Mg_MASS |
static Atom |
Mn |
static double |
Mn_MASS |
static Atom |
N |
static double |
N_MASS |
static Atom |
Na |
static double |
Na_MASS |
static Atom |
O |
static double |
O_MASS |
static Atom |
P |
static double |
P_MASS |
static Atom |
S |
static double |
S_MASS |
static Atom |
Zn |
static double |
Zn_MASS |
| Modifier and Type | Method and Description |
|---|---|
Atom |
getAtom(AtomicSymbol atomicSymbol)
Return the default isotope for the
atomicSymbol |
Atom |
getAtom(AtomicSymbol atomicSymbol,
int massNumber)
Return the atom for the atomicSymbol with the number of neutrons given by massNumber
|
Atom |
getAtom(String symbol)
Parse the symbol and return the corresponding Atom.
|
List<Atom> |
getAtoms(AtomicSymbol atomicSymbol)
Return all the atoms for the given symbol sorted by mass
For example AtomicSymbol.C will return {C12, C13, C14}
|
static PeriodicTable |
getInstance() |
public static final double ELECTRON_MASS
public static final double H_MASS
public static final double O_MASS
public static final double C_MASS
public static final double C13_MASS
public static final double N_MASS
public static final double P_MASS
public static final double S_MASS
public static final double K_MASS
public static final double Ca_MASS
public static final double Fe_MASS
public static final double Mg_MASS
public static final double Na_MASS
public static final double Zn_MASS
public static final double Mn_MASS
public static final double Cu_MASS
public static final double I_MASS
public static final Atom H
public static final Atom O
public static final Atom C
public static final Atom C13
public static final Atom N
public static final Atom P
public static final Atom S
public static final Atom K
public static final Atom Ca
public static final Atom Fe
public static final Atom Mg
public static final Atom Na
public static final Atom Zn
public static final Atom Mn
public static final Atom Cu
public static final Atom I
public static PeriodicTable getInstance()
public Atom getAtom(AtomicSymbol atomicSymbol, int massNumber)
atomicSymbol - the atomic symbolmassNumber - the number of neutronspublic Atom getAtom(AtomicSymbol atomicSymbol)
atomicSymbolatomicSymbol - the atomic symbolatomicSymbolpublic Atom getAtom(String symbol)
C given then an instance of Atom
C[12] returnedC[13] given then an instance of Atom C[13] instance returnedsymbol - the symbolIllegalArgumentException - if bad element formatpublic List<Atom> getAtoms(AtomicSymbol atomicSymbol)
atomicSymbol - the symbolCopyright © 2016. All Rights Reserved.