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, toHTMLStringaddProperty, 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, usingPropertyAsClassaddAttribute, addAttributes, clearAttributes, compareTo, getAttribute, getAttributes, NAttributes, setAttribute, setAttributespublic 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()
BaseEntryclone in class CompositionEntrypublic boolean equals(java.lang.Object other)
equals in interface java.util.Comparatorequals in class CompositionEntrypublic int compare(java.lang.Object A,
java.lang.Object B)
compare in interface java.util.Comparatorcompare in class CompositionEntrypublic int hashCode()
hashCode in class CompositionEntrypublic vassal.data.Cell getStructure()
public CompositionEntry getComposition()
public java.lang.String getName()
public vassal.analysis.VoronoiCellBasedAnalysis computeVoronoiTessellation()
throws java.lang.Exception
java.lang.Exceptionpublic void clearRepresentations()
public void reduceMemoryFootprint()
BaseEntryreduceMemoryFootprint in class BaseEntrypublic java.lang.String toString()
toString in class CompositionEntrypublic org.json.JSONObject toJSON()
BaseEntrytoJSON in class CompositionEntry