From 56b801a9cb6288e20c41b39c9d34b2e10f25feb8 Mon Sep 17 00:00:00 2001 From: DarkGuardsman Date: Wed, 2 Oct 2013 01:00:07 -0400 Subject: [PATCH] Started work on a enum to contain element data Plan is to include all elements from the periodic table with as much information as possible per elements. This might get long so i might want to consider constructing a data base that will be parsed per use. That way only a few elements are loaded into memory instead of over 255. --- src/com/builtbroken/common/Element.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/com/builtbroken/common/Element.java diff --git a/src/com/builtbroken/common/Element.java b/src/com/builtbroken/common/Element.java new file mode 100644 index 000000000..8d2e21ac1 --- /dev/null +++ b/src/com/builtbroken/common/Element.java @@ -0,0 +1,24 @@ +package com.builtbroken.common; + +/** List of element from the periodic table of elements for any kind of use + * + * @Source http://www.periodictable.com/Properties/A/SpecificHeat.an.html + * @source http://www.chemicalelements.com/ + * @author Robert Seifert */ +public enum Element +{ + HYDROGEN("Hydrogen", "H", 1.00794f, 14300f, 14.009985f, 14.009985f, 0.08988f, 1, 0); + + public float specificHeat, density, atomicMass; + + private Element() + { + + } + + private Element(String name, String symbol, float atomicMass, float specificHeat, float meltingPointK, float frezingPointK, float density, int numberOfProtons, int numberOfNeturons) + { + + } + +}