Class PeriodicTable

java.lang.Object
org.episteme.natural.chemistry.PeriodicTable

public final class PeriodicTable extends Object
This class provides access to the elements of the periodic table. Modernized for Episteme V5 to return Element objects with
invalid reference
Quantity
properties. Loads data from elements.json. * @author Silvere Martin-Michiellot
Since:
1.0
Author:
Gemini AI (Google DeepMind)
  • Method Details

    • getName

      public static String getName(String symbol)
      Returns the name for a symbol (e.g. "H" -> "Hydrogen").
      Parameters:
      symbol - the chemical symbol.
      Returns:
      the corresponding name.
    • getElement

      public static Element getElement(String nameOrSymbol)
      Returns an element from its name or symbol.
      Parameters:
      nameOrSymbol - the element name (e.g. "Hydrogen") or symbol (e.g. "H").
      Returns:
      the corresponding element or null if not found.
    • bySymbol

      public static Element bySymbol(String symbol)
      Retrieves an element by its chemical symbol (Legacy alias).
      Parameters:
      symbol - the symbol (e.g. "H", "He").
      Returns:
      the corresponding element or null if not found.
    • registerElement

      public static void registerElement(Element element)
      Registers an element manually.
      Parameters:
      element - the element to register.
    • getElementCount

      public static int getElementCount()
    • ensureLoaded

      public static void ensureLoaded()