public class FixedStoichiometryCompositionEntryGenerator extends BaseEntryGenerator
Creates entries by computing unique combinations of elements in certain,
user-defined ratios.
Usage: <stoichiometries...> -elems <elements...>
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<java.lang.Integer> |
Elements
Set of elements to use when generating entries
|
protected java.util.List<double[]> |
Stiochiometries
List of stiochiometries.
|
Constructor and Description |
---|
FixedStoichiometryCompositionEntryGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
addElement(java.lang.String elem)
Add an element to the list of those used when generating entries
|
void |
addStoichiometry(java.lang.String stoich)
Add a stoichiometry to the list of those to generate
|
void |
clearElements()
Clear the list of currently-defined elements
|
void |
clearStoichiometries()
Clear the list of currently-defined stoichiometries
|
java.util.Set<java.lang.String> |
getElements()
Get set of elements used in generation
|
java.util.List<double[]> |
getStiochiometries()
Get the current list of stoichiometries
|
java.util.Iterator<BaseEntry> |
iterator() |
java.lang.String |
printUsage()
Print out required format for options.
|
void |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
addEntriesToDataset, generateEntries, train
protected java.util.List<double[]> Stiochiometries
protected java.util.Set<java.lang.Integer> Elements
public FixedStoichiometryCompositionEntryGenerator()
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 clearStoichiometries()
public void clearElements()
public void addElement(java.lang.String elem)
elem
- Element to addpublic void addStoichiometry(java.lang.String stoich)
Simply list the stoichiometry using example element names. Examples include NiZr, AB, or A2BC
stoich
- Stoichiometry to addpublic java.util.List<double[]> getStiochiometries()
public java.util.Set<java.lang.String> getElements()
public java.util.Iterator<BaseEntry> iterator()