public class RandomOrderLongCG extends ChoiceGeneratorBase<java.lang.Long> implements LongChoiceGenerator
| Modifier and Type | Field and Description |
|---|---|
protected long[] |
choices |
protected int |
nextIdx |
| Constructor and Description |
|---|
RandomOrderLongCG(LongChoiceGenerator sub) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
advance to the next choice.
|
java.lang.Long |
getChoice(int idx)
explicit choice enumeration.
|
java.lang.Class<java.lang.Long> |
getChoiceType() |
java.lang.Long |
getNextChoice() |
int |
getProcessedNumberOfChoices() |
int |
getTotalNumberOfChoices() |
boolean |
hasMoreChoices() |
void |
reset()
this has to reset the CG to its initial state, which includes resetting
'isDone'
|
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, randomize, removeAttr, reorder, replaceAttr, select, setAttr, setCascaded, setContext, setCurrent, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setStateId, setThreadInfo, supportsReordering, toString, 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, randomize, removeAttr, reorder, replaceAttr, select, setAttr, setCascaded, setContext, setCurrent, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setStateId, setThreadInfo, supportsReorderingpublic RandomOrderLongCG(LongChoiceGenerator sub)
public java.lang.Long getChoice(int idx)
ChoiceGeneratorBasegetChoice in interface ChoiceGenerator<java.lang.Long>getChoice in class ChoiceGeneratorBase<java.lang.Long>public java.lang.Long getNextChoice()
getNextChoice in interface ChoiceGenerator<java.lang.Long>public void advance()
ChoiceGeneratoradvance in interface ChoiceGenerator<java.lang.Long>public int getProcessedNumberOfChoices()
getProcessedNumberOfChoices in interface ChoiceGenerator<java.lang.Long>public int getTotalNumberOfChoices()
getTotalNumberOfChoices in interface ChoiceGenerator<java.lang.Long>public boolean hasMoreChoices()
hasMoreChoices in interface ChoiceGenerator<java.lang.Long>public void reset()
ChoiceGeneratorreset in interface ChoiceGenerator<java.lang.Long>public java.lang.Class<java.lang.Long> getChoiceType()
getChoiceType in interface ChoiceGenerator<java.lang.Long>