public class CombinatorialSubstitutionGenerator extends BaseEntryGenerator
Usage: [-voro] -style [all|permutations|combinations]
[-ignore <elems to ignore>] $<prototypes> <elements...>
Modifier and Type | Class and Description |
---|---|
static class |
CombinatorialSubstitutionGenerator.EnumerationType
Types of enumeration
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
ComputeVoronoi
Whether to compute the Voronoi tessellation before generation
|
protected java.util.Set<java.lang.String> |
Elements
List of elements to substitute
|
protected java.util.Set<java.lang.String> |
ElementsToIgnore
List of elements ignore during substitution
|
protected CombinatorialSubstitutionGenerator.EnumerationType |
EnumerationStyle
Enumeration type for generating new compounds
|
protected java.util.List<CrystalStructureEntry> |
Prototypes
List of prototype structures
|
Constructor and Description |
---|
CombinatorialSubstitutionGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkElements(java.util.Collection<java.lang.String> elements)
Given list of element abbreviations, make sure all are known elements
|
protected java.util.Iterator<java.util.List<java.lang.String>> |
getReplacementIterator(CrystalStructureEntry entry)
Get an iterator over all possible combinations of elements on each site
of this structure
|
java.util.Iterator<BaseEntry> |
iterator() |
java.lang.String |
printUsage()
Print out required format for options.
|
void |
setComputeVoronoi(boolean input)
Set whether to compute the Voronoi tessellation before generating entries.
|
void |
setElementsToIgnore(java.util.Collection<java.lang.String> elements)
Set list of elements that, if present, will not be replaced
|
void |
setElementsToSubstitute(java.util.Collection<java.lang.String> elements)
Set list of elements to use for substitutions.
|
void |
setEnumerationStyle(CombinatorialSubstitutionGenerator.EnumerationType type)
Set method used to enumerate different sets of elements
|
void |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
void |
setPrototypes(CrystalStructureDataset data)
Define the list of prototype structures used to create entries.
|
void |
setPrototypes(java.util.List<CrystalStructureEntry> prototypes)
Define the list of prototype structures to use to create entries.
|
addEntriesToDataset, generateEntries, train
protected final java.util.Set<java.lang.String> Elements
protected final java.util.Set<java.lang.String> ElementsToIgnore
protected final java.util.List<CrystalStructureEntry> Prototypes
protected CombinatorialSubstitutionGenerator.EnumerationType EnumerationStyle
protected boolean ComputeVoronoi
public void setOptions(java.util.List<java.lang.Object> Options) throws java.lang.Exception
Options
Options
- Array of options as Objects - can be null
java.lang.Exception
- if problem with inputspublic java.lang.String printUsage()
Options
public void setElementsToSubstitute(java.util.Collection<java.lang.String> elements)
elements
- List of element abbreviationsprotected void checkElements(java.util.Collection<java.lang.String> elements) throws java.lang.IllegalArgumentException
elements
- List of element abbreviationjava.lang.IllegalArgumentException
- If an element is not of a known typepublic void setElementsToIgnore(java.util.Collection<java.lang.String> elements)
elements
- Collection of element abbreviationspublic void setPrototypes(java.util.List<CrystalStructureEntry> prototypes)
prototypes
- List containing prototype structurespublic void setPrototypes(CrystalStructureDataset data)
data
- Dataset containing list of prototype structurespublic void setEnumerationStyle(CombinatorialSubstitutionGenerator.EnumerationType type)
type
- Enumeration stylepublic void setComputeVoronoi(boolean input)
input
- Desired setting.public java.util.Iterator<BaseEntry> iterator()
protected java.util.Iterator<java.util.List<java.lang.String>> getReplacementIterator(CrystalStructureEntry entry)
entry
- Entry to make the iterator for