public class AlloyingCompositionEntryGenerator extends BaseEntryGenerator
Usage: <base composition> <max addition> <step size> <elements...>
base composition: Base composition to be alloyed into
max addition: Maximum fraction of element to add
step size: Step size between alloying elements
elements: Elements to add in
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<java.lang.Integer> |
AlloyingElements
Set of elements to add into alloy
|
protected double |
AlloyStep
Step size.
|
protected int[] |
Elements
Elements of composition to be added to
|
protected double[] |
Fractions
Fractions of each element of composition to be added to
|
protected double |
MaxAlloying
Maximum amount to add.
|
Constructor and Description |
---|
AlloyingCompositionEntryGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
addAlloyingElement(java.lang.String element)
Add element to list of potential alloying elements
|
void |
addAlloyingElements(java.util.Collection<java.lang.String> elements)
Add elements to list of potential alloying elements
|
void |
clearElements()
Clear the list of alloying elements
|
java.util.Iterator<BaseEntry> |
iterator() |
java.lang.String |
printUsage()
Print out required format for options.
|
void |
setAlloyStep(double step)
Set the step size
|
void |
setComposition(CompositionEntry composition)
Set starting composition for alloys
|
void |
setMaxAlloying(double max)
Set the maximum amount of element to add.
|
void |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
addEntriesToDataset, generateEntries, train
protected int[] Elements
protected double[] Fractions
protected double MaxAlloying
protected double AlloyStep
protected final java.util.Set<java.lang.Integer> AlloyingElements
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 setComposition(CompositionEntry composition)
composition
- Desired compositionpublic void setMaxAlloying(double max)
max
- Maximum fraction (should be less than 1)public void setAlloyStep(double step)
step
- Spacing between alloy, in fractional unitspublic void clearElements()
public void addAlloyingElement(java.lang.String element)
element
- Symbol (ex: Au) of element to be addedpublic void addAlloyingElements(java.util.Collection<java.lang.String> elements)
elements
- Symbols (ex: Au) of elements to be addedpublic java.util.Iterator<BaseEntry> iterator()