public abstract class LookupData
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.SortedMap<java.lang.String,double[]> |
ElementalProperties
Holds elemental property data.
|
static java.lang.String[] |
ElementNames
Name of elements, ordered by atomic number.
|
static java.util.SortedMap<java.lang.String,double[][]> |
ElementPairProperties
Properties of a pair of elements.
|
static double[][] |
IonizationEnergies
Ionization energies of each element
|
static double[][] |
OxidationStates
Holds oxidation states of individual elements
|
static int[] |
SortingOrder
Order in which to sort elements.
|
| Constructor and Description |
|---|
LookupData() |
| Modifier and Type | Method and Description |
|---|---|
static double[][] |
loadPairPropertyTable(java.lang.String dataDir,
java.lang.String property)
Load in a binary property table
|
static double[] |
loadPropertyLookupTable(java.lang.String dataDir,
java.lang.String property)
Load in an elemental property lookup table
|
static void |
readIonizationEnergies(java.lang.String path)
Read in ionization energies
|
static double[][] |
readOxidationStates(java.lang.String dataDir)
Reads in a data file that contains known oxidation states for each
element.
|
static double |
readPairTable(double[][] table,
int elemA,
int elemB)
Helper function for reading from a binary property lookup table
|
static double |
readPairTable(double[][] table,
java.lang.String elemA,
java.lang.String elemB)
Helper function for reading from a binary property lookup table
|
public static int[] SortingOrder
public static java.lang.String[] ElementNames
public static java.util.SortedMap<java.lang.String,double[]> ElementalProperties
public static double[][] OxidationStates
public static double[][] IonizationEnergies
public static java.util.SortedMap<java.lang.String,double[][]> ElementPairProperties
public static double[] loadPropertyLookupTable(java.lang.String dataDir,
java.lang.String property)
throws java.lang.Exception
dataDir - Directory containing lookup-dataproperty - Property to be loadedjava.lang.Exceptionpublic static double[][] loadPairPropertyTable(java.lang.String dataDir,
java.lang.String property)
throws java.lang.Exception
dataDir - Directory containing property lookup dataproperty - Name of propertyjava.lang.Exceptionpublic static double readPairTable(double[][] table,
java.lang.String elemA,
java.lang.String elemB)
table - Table to be readelemA - Symbol of one elementelemB - Symbol of a second elementpublic static double readPairTable(double[][] table,
int elemA,
int elemB)
table - Table to be readelemA - Index of one elementelemB - Index of a second elementpublic static void readIonizationEnergies(java.lang.String path)
throws java.io.IOException
path - Path to lookup tablejava.io.IOExceptionpublic static double[][] readOxidationStates(java.lang.String dataDir)
dataDir - Path to directory holding the lookup data