public class CrystalStructureEntry extends CompositionEntry
Element, ElementNames, Fraction, HTMLFormat, NumberInCell, SortingOrder
Constructor and Description |
---|
CrystalStructureEntry(vassal.data.Cell structure,
java.lang.String name,
double[] radii)
Create an entry given its crystal structure
|
Modifier and Type | Method and Description |
---|---|
java.util.List<CrystalStructureEntry> |
changeComposition(CompositionEntry composition)
Redecorate a structure with a new composition.
|
void |
clearRepresentations()
Clear out the representations used when computing attributes.
|
CrystalStructureEntry |
clone()
Generates a clone of an entry.
|
int |
compare(java.lang.Object A,
java.lang.Object B) |
vassal.analysis.VoronoiCellBasedAnalysis |
computeVoronoiTessellation()
Compute the Voronoi tessellation of this structure.
|
boolean |
equals(java.lang.Object other) |
CompositionEntry |
getComposition()
Get the composition of this entry.
|
java.lang.String |
getName()
Get name of this entry
|
vassal.data.Cell |
getStructure()
Get link to structure
|
int |
hashCode() |
void |
reduceMemoryFootprint()
Delete any cached information stored within this entry.
|
CrystalStructureEntry |
replaceElements(java.util.Map<java.lang.String,java.lang.String> replacements)
Create a new entry by replacing elements on this entry
|
org.json.JSONObject |
toJSON()
Print entry as a JSON object
|
java.lang.String |
toString() |
combineCompositions, getAverageDeviation, getAverageDeviation, getElementFraction, getElementFraction, getElements, getFractions, getMaxDifference, getMaximum, getMean, getMinimum, getMost, getSortingOrder, printNumber, rectifyEntry, setComposition, toHTMLString
addProperty, addProperty, addProperty, clearPropertyData, 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, usingPropertyAsClass
addAttribute, addAttributes, clearAttributes, compareTo, getAttribute, getAttributes, NAttributes, setAttribute, setAttributes
public CrystalStructureEntry(vassal.data.Cell structure, java.lang.String name, double[] radii)
structure
- Structure of this entryradii
- Radii to use for each element (null to leave radii unchanged)name
- Name of structure (used for debugging purposes)public CrystalStructureEntry replaceElements(java.util.Map<java.lang.String,java.lang.String> replacements)
replacements
- Map of elements to replace. Key: Old element, Value: New elementpublic java.util.List<CrystalStructureEntry> changeComposition(CompositionEntry composition)
Note that this operation may create structures which have different atomic positions, but are symmetrically equivalent.
composition
- Desired compositionpublic CrystalStructureEntry clone()
BaseEntry
clone
in class CompositionEntry
public boolean equals(java.lang.Object other)
equals
in interface java.util.Comparator
equals
in class CompositionEntry
public int compare(java.lang.Object A, java.lang.Object B)
compare
in interface java.util.Comparator
compare
in class CompositionEntry
public int hashCode()
hashCode
in class CompositionEntry
public vassal.data.Cell getStructure()
public CompositionEntry getComposition()
public java.lang.String getName()
public vassal.analysis.VoronoiCellBasedAnalysis computeVoronoiTessellation() throws java.lang.Exception
java.lang.Exception
public void clearRepresentations()
public void reduceMemoryFootprint()
BaseEntry
reduceMemoryFootprint
in class BaseEntry
public java.lang.String toString()
toString
in class CompositionEntry
public org.json.JSONObject toJSON()
BaseEntry
toJSON
in class CompositionEntry