public class RandomOrderIntCG extends ChoiceGeneratorBase<Integer> implements IntChoiceGenerator
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
choices |
protected int |
nextIdx |
| Constructor and Description |
|---|
RandomOrderIntCG(IntChoiceGenerator sub) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
advance to the next choice.
|
Class<Integer> |
getChoiceType() |
Integer |
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, getAllOfType, getAttr, getAttr, getCascade, getCascadedParent, getId, getIdRef, getInsn, getNextAttr, getPreviousChoiceGenerator, getPreviousChoiceGeneratorOfType, getSourceLocation, getThreadInfo, hasAttr, hasAttr, hasAttrValue, init, isCascaded, isDone, isProcessed, isSchedulingPoint, randomize, removeAttr, reorder, replaceAttr, select, setAttr, setCascaded, setContext, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setThreadInfo, supportsReordering, toString, useRandomizationequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAttr, advance, attrIterator, attrIterator, clone, deepClone, getAll, getAllOfType, getAttr, getAttr, getCascade, getCascadedParent, getId, getIdRef, getInsn, getNextAttr, getPreviousChoiceGenerator, getPreviousChoiceGeneratorOfType, getSourceLocation, getThreadInfo, hasAttr, hasAttr, isCascaded, isDone, isProcessed, isSchedulingPoint, randomize, removeAttr, reorder, replaceAttr, select, setAttr, setCascaded, setContext, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setThreadInfo, supportsReorderingpublic RandomOrderIntCG(IntChoiceGenerator sub)
public Integer getNextChoice()
getNextChoice in interface ChoiceGenerator<Integer>public void advance()
ChoiceGeneratoradvance in interface ChoiceGenerator<Integer>public int getProcessedNumberOfChoices()
getProcessedNumberOfChoices in interface ChoiceGenerator<Integer>public int getTotalNumberOfChoices()
getTotalNumberOfChoices in interface ChoiceGenerator<Integer>public boolean hasMoreChoices()
hasMoreChoices in interface ChoiceGenerator<Integer>public void reset()
ChoiceGeneratorreset in interface ChoiceGenerator<Integer>public Class<Integer> getChoiceType()
getChoiceType in interface ChoiceGenerator<Integer>