Package gda.util.exafs
Class Element
java.lang.Object
gda.util.exafs.Element
To provide information about the chemical elements.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringedgeName(int edge) Gets the edge name "K" etc which corresponds to the given integer value.booleanstatic Collection<Element> Returns the Collectionof all elements in order of atomic number. Returns the allowable edges for an elementsdoubleGets the atomic mass of the elementintGets the atomic number of the elementdoubleGets the atomic radius of the elementdoubleGets the atomic volume of the elementdoubleGets the boiling point of the elementdoublegetCorehole(int edge) doublegetCoreHole(String edgeName) doubleGets the covalent radius of the elementdoubleGets the density of the elementCreates and returns an AbsorptionEdgedoublegetEdgeEnergy(String edgeName) Gets the energy of the given edge in eVdoublegetEdgeEnergyInkeV(String edgeName) Gets the energy of the given edge in keVgetEdgesInEnergyRange(double minEnergy, double maxEnergy) Returns the iterator of a vector of the names of the edges which are in the given energy range.static ElementgetElement(String symbol) static Collection<Element> getElements(int from, int to) doublegetFinalEnergy(String edge) Returns an estimation in eV of the final energy to end a monochromatic spectroscopy scan.doublegetInitialEnergy(String edge) Returns an estimation in eV of the initial energy to start a monochromatic specroscopy scan.getListOfEdgesInEnergyRange(double minEnergy, double maxEnergy) Returns of the names of the edges which are in the given energy range.doubleGets the melting point of the elementgetName()Gets the name of the elementstatic String[]getSortedEdgeSymbols(String fromSymbol, String toSymbol) Return elements sorted in atomic number range.static String[]Returns the symbols sorted alphabetically.Gets the symbol of the elementintgetType()Gets the type of element (METAL etc)inthashCode()static booleantoString()
-
Field Details
-
METAL
public static final int METAL- See Also:
-
NONMETAL
public static final int NONMETAL- See Also:
-
METALLOID
public static final int METALLOID- See Also:
-
NOBLEGAS
public static final int NOBLEGAS- See Also:
-
LANTHANIDE
public static final int LANTHANIDE- See Also:
-
ACTINIDE
public static final int ACTINIDE- See Also:
-
-
Method Details
-
getAllElements
Returns the Collectionof all elements in order of atomic number. - Returns:
- the Collection
of all elements
-
getElements
- Parameters:
from-to-- Returns:
- Elements in range
-
edgeName
Gets the edge name "K" etc which corresponds to the given integer value.- Parameters:
edge- integer edge value- Returns:
- the edge name corresponding to the given integer value
-
getAtomicNumber
public int getAtomicNumber()Gets the atomic number of the element- Returns:
- atomic number
-
getSymbol
Gets the symbol of the element- Returns:
- element symbol
-
getName
Gets the name of the element- Returns:
- element name
-
getType
public int getType()Gets the type of element (METAL etc)- Returns:
- element type
-
getAtomicRadius
public double getAtomicRadius()Gets the atomic radius of the element- Returns:
- atomic radius
-
getCovalentRadius
public double getCovalentRadius()Gets the covalent radius of the element- Returns:
- covalent radius
-
getAtomicMass
public double getAtomicMass()Gets the atomic mass of the element- Returns:
- atomic mass
-
getBoilingPT
public double getBoilingPT()Gets the boiling point of the element- Returns:
- boiling point
-
getMeltingPT
public double getMeltingPT()Gets the melting point of the element- Returns:
- melting point
-
getDensity
public double getDensity()Gets the density of the element- Returns:
- density
-
getAtomicVolume
public double getAtomicVolume()Gets the atomic volume of the element- Returns:
- atomic volume
-
getEdgesInEnergyRange
Returns the iterator of a vector of the names of the edges which are in the given energy range.- Parameters:
minEnergy- the beginning of the energy range in eVmaxEnergy- the end of the energy range in eV- Returns:
- Vectorinvalid input: '<'String of names
-
getListOfEdgesInEnergyRange
Returns of the names of the edges which are in the given energy range.- Parameters:
minEnergy- the beginning of the energy range in eVmaxEnergy- the end of the energy range in eV
-
getEdgeEnergy
Gets the energy of the given edge in eV- Parameters:
edgeName- the edge ("K", "L1" etc)- Returns:
- energy value
-
getEdgeEnergyInkeV
Gets the energy of the given edge in keV- Parameters:
edgeName- the edge ("K", "L1" etc)- Returns:
- energy value
-
getInitialEnergy
Returns an estimation in eV of the initial energy to start a monochromatic specroscopy scan.- Parameters:
edge-- Returns:
- double eV
-
getFinalEnergy
Returns an estimation in eV of the final energy to end a monochromatic spectroscopy scan.- Parameters:
edge-- Returns:
- double eV
-
getAllowedEdges
Returns the allowable edges for an elements- Returns:
- the edges
-
getCoreHole
- Parameters:
edgeName-- Returns:
- core hole level in eV
-
getCorehole
public double getCorehole(int edge) - Parameters:
edge-- Returns:
- core hole level in eV
-
getEdge
Creates and returns an AbsorptionEdge- Parameters:
edgeName- the edge name ("K", "L1", "L2", "L3")- Returns:
- an AbsorptionEdge containing the relevant information or null if the edge does not exist
-
hashCode
public int hashCode() -
equals
-
getSortedSymbols
Returns the symbols sorted alphabetically.- Returns:
- String[]
-
getSortedEdgeSymbols
Return elements sorted in atomic number range.- Parameters:
fromSymbol- (atomic symbol)toSymbol- (atomic symbol)- Returns:
- String[]
-
toString
-
getElement
- Parameters:
symbol-- Returns:
- Element
-
isElement
- Parameters:
symbol-- Returns:
- boolean
-