Class Element

java.lang.Object
gda.util.exafs.Element

public final class Element extends Object
To provide information about the chemical elements.
  • Field Details

  • Method Details

    • getAllElements

      public static Collection<Element> getAllElements()
      Returns the Collection of all elements in order of atomic number.
      Returns:
      the Collection of all elements
    • getElements

      public static Collection<Element> getElements(int from, int to)
      Parameters:
      from -
      to -
      Returns:
      Elements in range
    • edgeName

      public static String edgeName(int edge)
      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

      public String getSymbol()
      Gets the symbol of the element
      Returns:
      element symbol
    • getName

      public String 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

      public Iterator<String> getEdgesInEnergyRange(double minEnergy, double maxEnergy)
      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 eV
      maxEnergy - the end of the energy range in eV
      Returns:
      Vectorinvalid input: '<'String of names
    • getListOfEdgesInEnergyRange

      public List<String> getListOfEdgesInEnergyRange(double minEnergy, double maxEnergy)
      Returns of the names of the edges which are in the given energy range.
      Parameters:
      minEnergy - the beginning of the energy range in eV
      maxEnergy - the end of the energy range in eV
    • getEdgeEnergy

      public double getEdgeEnergy(String edgeName)
      Gets the energy of the given edge in eV
      Parameters:
      edgeName - the edge ("K", "L1" etc)
      Returns:
      energy value
    • getEdgeEnergyInkeV

      public double getEdgeEnergyInkeV(String edgeName)
      Gets the energy of the given edge in keV
      Parameters:
      edgeName - the edge ("K", "L1" etc)
      Returns:
      energy value
    • getInitialEnergy

      public double getInitialEnergy(String edge)
      Returns an estimation in eV of the initial energy to start a monochromatic specroscopy scan.
      Parameters:
      edge -
      Returns:
      double eV
    • getFinalEnergy

      public double getFinalEnergy(String edge)
      Returns an estimation in eV of the final energy to end a monochromatic spectroscopy scan.
      Parameters:
      edge -
      Returns:
      double eV
    • getAllowedEdges

      public List<String> getAllowedEdges()
      Returns the allowable edges for an elements
      Returns:
      the edges
    • getCoreHole

      public double getCoreHole(String edgeName)
      Parameters:
      edgeName -
      Returns:
      core hole level in eV
    • getCorehole

      public double getCorehole(int edge)
      Parameters:
      edge -
      Returns:
      core hole level in eV
    • getEdge

      public AbsorptionEdge getEdge(String edgeName)
      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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getSortedSymbols

      public static String[] getSortedSymbols()
      Returns the symbols sorted alphabetically.
      Returns:
      String[]
    • getSortedEdgeSymbols

      public static String[] getSortedEdgeSymbols(String fromSymbol, String toSymbol)
      Return elements sorted in atomic number range.
      Parameters:
      fromSymbol - (atomic symbol)
      toSymbol - (atomic symbol)
      Returns:
      String[]
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getElement

      public static Element getElement(String symbol)
      Parameters:
      symbol -
      Returns:
      Element
    • isElement

      public static boolean isElement(String symbol)
      Parameters:
      symbol -
      Returns:
      boolean