@@ -0,0 +1,937 @@
+package org.biojava3.aaproperties.xml;%0D%0A%0D%0Aimport java.util.List;%0D%0A%0D%0A/**%0D%0A * One way to model the elements%0D%0A * @author pvtroshin%0D%0A *%0D%0A */%0D%0Apublic class Element %7B%0D%0A%0D%0A%09/**%0D%0A%09 * Element name as per periodic table e.g. %22Hydrogen%22%0D%0A%09 */%0D%0A%09String name; %0D%0A%09/**%0D%0A%09 * Element short name as in periodic table e.g. %22H%22%0D%0A%09 */%0D%0A%09String shortName; %0D%0A%09/**%0D%0A%09 * The atomic number of the element = number of protons. %0D%0A%09 */%0D%0A%09int atomic_number; %0D%0A%09/**%0D%0A%09 * List of common isotopes of the element%0D%0A%09 */%0D%0A%09List%3CIsotope%3E isotopes; %0D%0A%0D%0A%09/**%0D%0A%09 * Standard Atomic Weight%0D%0A%09 *   %0D%0A%09 */%0D%0A%09double getMass() %7B %0D%0A%09%09throw new UnsupportedOperationException();%0D%0A%09%7D%0D%0A%09%0D%0A%09%0D%0A%09class Isotope %7B %0D%0A%09%09/**%0D%0A%09%09 * The isotope name i.e. T (tritium)%0D%0A%09%09 */%0D%0A%09%09String name; %0D%0A%09%09/**%0D%0A%09%09 * Number of neutrons %0D%0A%09%09 */%0D%0A%09%09int neutrons_num;%0D%0A%09%09/**%0D%0A%09%09 * Relative Atomic Mass of the isotope%0D%0A%09%09 */%0D%0A%09%09double weight; %0D%0A%09%09/**%0D%0A%09%09 * Natural abundance %0D%0A%09%09 */%0D%0A%09%09double abandunce; %0D%0A%09%7D%0D%0A%09%0D%0A%7D%0D%0A

One way to model the elements