public class DoubleThresholdGenerator extends ChoiceGeneratorBase<java.lang.Double> implements DoubleChoiceGenerator
| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
protected double[] |
values |
| Constructor and Description |
|---|
DoubleThresholdGenerator(Config conf,
java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
advance to the next choice.
|
java.lang.Double |
getChoice(int idx)
explicit choice enumeration.
|
java.lang.Class<java.lang.Double> |
getChoiceType() |
java.lang.Double |
getNextChoice() |
int |
getProcessedNumberOfChoices() |
int |
getTotalNumberOfChoices() |
boolean |
hasMoreChoices() |
DoubleThresholdGenerator |
randomize()
turn the order of choices random (if it isn't already).
|
void |
reset()
this has to reset the CG to its initial state, which includes resetting
'isDone'
|
java.lang.String |
toString() |
addAttr, advance, attrIterator, attrIterator, clone, deepClone, getAll, getAllChoices, getAllOfType, getAttr, getAttr, getCascade, getCascadedParent, getId, getIdRef, getInsn, getNextAttr, getNumberOfParents, getPreviousChoiceGenerator, getPreviousChoiceGeneratorOfType, getProcessedChoices, getSourceLocation, getStateId, getThreadInfo, getUnprocessedChoices, hasAttr, hasAttr, hasAttrValue, init, isCascaded, isDone, isProcessed, isSchedulingPoint, removeAttr, reorder, replaceAttr, select, setAttr, setCascaded, setContext, setCurrent, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setStateId, setThreadInfo, supportsReordering, useRandomizationequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAttr, advance, attrIterator, attrIterator, clone, deepClone, getAll, getAllChoices, getAllOfType, getAttr, getAttr, getCascade, getCascadedParent, getId, getIdRef, getInsn, getNextAttr, getNumberOfParents, getPreviousChoiceGenerator, getPreviousChoiceGeneratorOfType, getProcessedChoices, getSourceLocation, getStateId, getThreadInfo, getUnprocessedChoices, hasAttr, hasAttr, isCascaded, isDone, isProcessed, isSchedulingPoint, removeAttr, reorder, replaceAttr, select, setAttr, setCascaded, setContext, setCurrent, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setStateId, setThreadInfo, supportsReorderingpublic DoubleThresholdGenerator(Config conf, java.lang.String id)
public java.lang.Double getChoice(int idx)
ChoiceGeneratorBasegetChoice in interface ChoiceGenerator<java.lang.Double>getChoice in class ChoiceGeneratorBase<java.lang.Double>public void reset()
ChoiceGeneratorreset in interface ChoiceGenerator<java.lang.Double>public boolean hasMoreChoices()
hasMoreChoices in interface ChoiceGenerator<java.lang.Double>public java.lang.Double getNextChoice()
getNextChoice in interface ChoiceGenerator<java.lang.Double>public void advance()
ChoiceGeneratoradvance in interface ChoiceGenerator<java.lang.Double>public int getTotalNumberOfChoices()
getTotalNumberOfChoices in interface ChoiceGenerator<java.lang.Double>public int getProcessedNumberOfChoices()
getProcessedNumberOfChoices in interface ChoiceGenerator<java.lang.Double>public java.lang.String toString()
toString in class ChoiceGeneratorBase<java.lang.Double>public DoubleThresholdGenerator randomize()
ChoiceGeneratorrandomize in interface ChoiceGenerator<java.lang.Double>randomize in class ChoiceGeneratorBase<java.lang.Double>public java.lang.Class<java.lang.Double> getChoiceType()
getChoiceType in interface ChoiceGenerator<java.lang.Double>