public class ElementEntry extends MultiPropertyEntry
| Constructor and Description |
|---|
ElementEntry(int ID,
boolean isZ)
Create an entry given atomic number or element ID.
|
ElementEntry(java.lang.String element)
Create a new entry
|
| Modifier and Type | Method and Description |
|---|---|
int |
getElementID()
Get the ID of this element
|
double |
getLookupValue(double[] lookup)
Given an elemental-property lookup array, get the property for this entry.
|
java.lang.String |
toHTMLString()
Print entry in a HTML-friendly format.
|
org.json.JSONObject |
toJSON()
Print entry as a JSON object
|
java.lang.String |
toString() |
addProperty, addProperty, addProperty, clearPropertyData, clone, deleteMeasuredClass, deletePredictedClass, getClassProbilities, getMeasuredClass, getMeasuredProperties, getMeasuredProperty, getPredictedClass, getPredictedProperty, getPropertyClassProbabilties, getTargetProperty, hasClassProbabilities, hasMeasuredProperty, hasMeasurement, hasPredictedProperty, hasPrediction, hasPropertyClassProbabilities, NProperties, setClassProbabilities, setMeasuredClass, setMeasuredProperties, setMeasuredProperty, setNProperties, setPredictedClass, setPredictedProperty, setPredictedProperty, setTargetProperty, usingPropertyAsClassaddAttribute, addAttributes, clearAttributes, compare, compareTo, equals, getAttribute, getAttributes, hashCode, NAttributes, reduceMemoryFootprint, setAttribute, setAttributespublic ElementEntry(java.lang.String element)
throws java.lang.Exception
element - Element abbreviationjava.lang.Exceptionpublic ElementEntry(int ID,
boolean isZ)
ID - ID number of the elementisZ - Whether this ID number is the atomic number or (atomic number - 1)public int getElementID()
public double getLookupValue(double[] lookup)
lookup - Lookup table of elemental propertiespublic java.lang.String toHTMLString()
BaseEntrytoHTMLString in class BaseEntrypublic org.json.JSONObject toJSON()
BaseEntrytoJSON in class MultiPropertyEntry