chemaxon.struc
Class PeriodicSystem

java.lang.Object
  extended bychemaxon.struc.PeriodicSystem

public class PeriodicSystem
extends java.lang.Object

Periodic System of the Elements.

Version:
1.1, 08/23/2004
Author:
Gyorgy Pirok

Constructor Summary
PeriodicSystem()
           
 
Method Summary
static double getAbundance(int z, int m)
          Natural abundance of the isotope
static int getAtomicNumber(java.lang.String symbol)
          Returns the atomic number of the element specified by its symbol.
static int getElementCount()
          Number of elements in the periodic system
static int getIsotope(int z, int i)
          Retrieves an isotope of the element
static int getIsotopeCount()
          Number of isotopes in the periodic system
static int getIsotopeCount(int z)
          Number of isotopes of the element
static double getMass(int z)
          Atomic weight of the element based on the natural abundance of its isotopes
static double getMass(int z, int m)
          Atomic weight of the element
static int getMostFrequentNaturalIsotope(int z)
          Returns the mass number of the most frequent natural isotope of the element
static java.lang.String getName(int z)
          Name of the element
static java.lang.String getSymbol(int z)
          Symbol of the element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeriodicSystem

public PeriodicSystem()
Method Detail

getElementCount

public static int getElementCount()
Number of elements in the periodic system

Returns:
number of element

getIsotopeCount

public static int getIsotopeCount()
Number of isotopes in the periodic system

Returns:
number of isotopes

getIsotopeCount

public static int getIsotopeCount(int z)
Number of isotopes of the element

Parameters:
z - atomic number of the element (protons)
Returns:
number of isotopes

getIsotope

public static int getIsotope(int z,
                             int i)
Retrieves an isotope of the element

Parameters:
z - atomic number of the element (protons)
i - index of the isotope (0 based)
Returns:
mass number of the isotope

getName

public static java.lang.String getName(int z)
Name of the element

Parameters:
z - atomic number (protons)
Returns:
element name

getSymbol

public static java.lang.String getSymbol(int z)
Symbol of the element

Parameters:
z - atomic number (protons)
Returns:
element symbol

getMass

public static double getMass(int z)
Atomic weight of the element based on the natural abundance of its isotopes

Parameters:
z - atomic number (protons)
Returns:
element symbol

getMass

public static double getMass(int z,
                             int m)
Atomic weight of the element

Parameters:
z - atomic number of the isotope
m - mass number of the isotope (0 for element mass)
Returns:
isotope mass (0 if isotope does not exist)

getAbundance

public static double getAbundance(int z,
                                  int m)
Natural abundance of the isotope

Parameters:
z - atomic number of the isotope (protons)
m - mass number of the isotope (protons + neutrons)
Returns:
natural abundance (100 for the most frequent isotope)

getMostFrequentNaturalIsotope

public static int getMostFrequentNaturalIsotope(int z)
Returns the mass number of the most frequent natural isotope of the element

Parameters:
z - atomic number (protons)
Returns:
mass number of the isotope (-1 if artifical element)

getAtomicNumber

public static int getAtomicNumber(java.lang.String symbol)
Returns the atomic number of the element specified by its symbol. Case insensitive.

Parameters:
symbol - atom symbol e.g. "C", "Br".
Returns:
atomic number or -1 if not found.