public class IonicCompoundFinder extends java.lang.Object implements Commandable
Works by finding all combinations of elements in the supplied composition that are within a certain distance of the target composition with less than a certain number of atoms per unit cell.
Distance is computed as the L1 distance of the composition vector. Example: Fe3Al and FeAl are 0.5 apart.
Implemented Command
run <composition> <distance> <size> -
Find all neutral compounds within a certain distance of a target
| Constructor and Description |
|---|
IonicCompoundFinder() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<CompositionEntry> |
findAllCompounds()
Locate all ionic compounds within a certain distance of the target composition.
|
java.lang.Object |
runCommand(java.util.List<java.lang.Object> Command)
Process some command described by a list of Objects.
|
void |
setLookupPath(java.lang.String dir)
Set where to look for oxidation state data
|
void |
setMaxFormulaUnitSize(int size)
Set maximum number of atoms in formula unit.
|
void |
setMaximumDistance(double dist)
Set the maximum allowed distance from the target value.
|
void |
setNominalComposition(CompositionEntry comp)
Set the target composition of the ionic compound.
|
public void setNominalComposition(CompositionEntry comp) throws java.lang.Exception
comp - Desired nominal compositionjava.lang.Exceptionpublic void setMaximumDistance(double dist)
dist - Maximum allowed distancepublic void setMaxFormulaUnitSize(int size)
size - Maximum allowed sizepublic void setLookupPath(java.lang.String dir)
dir - Path to lookup-data directorypublic java.util.List<CompositionEntry> findAllCompounds() throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object runCommand(java.util.List<java.lang.Object> Command)
throws java.lang.Exception
CommandablerunCommand in interface CommandableCommand - Command as a list of objectsjava.lang.Exception - If something goes wrong