public class PeriodicTable
extends java.lang.Object
Use the singleton like this:
const PeriodicTable *tbl = PeriodicTable::getTable(); tbl->getAtomicWeight(6); // get atomic weight for Carbon tbl->getAtomicWeight('C'); // get atomic weight for Carbon
Modifier | Constructor and Description |
---|---|
protected |
PeriodicTable(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
protected void |
finalize() |
double |
getAbundanceForIsotope(long atomicNumber,
long isotope) |
double |
getAbundanceForIsotope(java.lang.String elementSymbol,
long isotope) |
int |
getAtomicNumber(java.lang.String elementSymbol) |
double |
getAtomicWeight(long atomicNumber) |
double |
getAtomicWeight(java.lang.String elementSymbol)
This is an overloaded member function, provided for convenience.
|
protected static long |
getCPtr(PeriodicTable obj) |
int |
getDefaultValence(long atomicNumber) |
int |
getDefaultValence(java.lang.String elementSymbol)
This is an overloaded member function, provided for convenience.
|
java.lang.String |
getElementSymbol(long atomicNumber) |
double |
getMassForIsotope(long atomicNumber,
long isotope) |
double |
getMassForIsotope(java.lang.String elementSymbol,
long isotope) |
int |
getMostCommonIsotope(long atomicNumber) |
int |
getMostCommonIsotope(java.lang.String elementSymbol) |
double |
getMostCommonIsotopeMass(long atomicNumber) |
double |
getMostCommonIsotopeMass(java.lang.String elementSymbol) |
int |
getNouterElecs(long atomicNumber) |
int |
getNouterElecs(java.lang.String elementSymbol)
This is an overloaded member function, provided for convenience.
|
double |
getRb0(long atomicNumber) |
double |
getRb0(java.lang.String elementSymbol)
This is an overloaded member function, provided for convenience.
|
double |
getRcovalent(long atomicNumber) |
double |
getRcovalent(java.lang.String elementSymbol)
This is an overloaded member function, provided for convenience.
|
double |
getRvdw(long atomicNumber) |
double |
getRvdw(java.lang.String elementSymbol)
This is an overloaded member function, provided for convenience.
|
static PeriodicTable |
getTable() |
Int_Vect |
getValenceList(long atomicNumber) |
Int_Vect |
getValenceList(java.lang.String elementSymbol)
This is an overloaded member function, provided for convenience.
|
boolean |
moreElectroNegative(long anum1,
long anum2)
convenience function to determine which atom is more electronegative
|
protected static long getCPtr(PeriodicTable obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public static PeriodicTable getTable()
public double getAtomicWeight(long atomicNumber)
public double getAtomicWeight(java.lang.String elementSymbol)
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
public int getAtomicNumber(java.lang.String elementSymbol)
public java.lang.String getElementSymbol(long atomicNumber)
public double getRvdw(long atomicNumber)
public double getRvdw(java.lang.String elementSymbol)
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
public double getRcovalent(long atomicNumber)
public double getRcovalent(java.lang.String elementSymbol)
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
public double getRb0(long atomicNumber)
public double getRb0(java.lang.String elementSymbol)
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
public int getDefaultValence(long atomicNumber)
public int getDefaultValence(java.lang.String elementSymbol)
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
public Int_Vect getValenceList(long atomicNumber)
public Int_Vect getValenceList(java.lang.String elementSymbol)
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
public int getNouterElecs(long atomicNumber)
public int getNouterElecs(java.lang.String elementSymbol)
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
public int getMostCommonIsotope(long atomicNumber)
public int getMostCommonIsotope(java.lang.String elementSymbol)
public double getMostCommonIsotopeMass(long atomicNumber)
public double getMostCommonIsotopeMass(java.lang.String elementSymbol)
public double getMassForIsotope(long atomicNumber, long isotope)
public double getMassForIsotope(java.lang.String elementSymbol, long isotope)
public double getAbundanceForIsotope(long atomicNumber, long isotope)
public double getAbundanceForIsotope(java.lang.String elementSymbol, long isotope)
public boolean moreElectroNegative(long anum1, long anum2)
convenience function to determine which atom is more electronegative
check if atom with atomic number anum1 is more electronegative than the one with anum2 this is rather lame but here is how we do it
the atom with the higher number of outer shell electrons is considered more electronegative if the # of outer shell elecs are the same the atom with the lower atomic weight is more electronegative