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.
This commit is contained in:
parent
09952ce675
commit
56b801a9cb
1 changed files with 24 additions and 0 deletions
24
src/com/builtbroken/common/Element.java
Normal file
24
src/com/builtbroken/common/Element.java
Normal file
|
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue