public class TypedObjectChoice extends ChoiceGeneratorBase<Integer> implements ReferenceChoiceGenerator
| Modifier and Type | Field and Description | 
|---|---|
| protected int | count | 
| protected String | type | 
| protected int[] | values | 
| Constructor and Description | 
|---|
| TypedObjectChoice(Config conf,
                 String id) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | advance()advance to the next choice. | 
| Class<Integer> | getChoiceType() | 
| Integer | getNextChoice() | 
| int | getProcessedNumberOfChoices() | 
| int | getTotalNumberOfChoices() | 
| boolean | hasMoreChoices() | 
| TypedObjectChoice | 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' | 
| String | toString() | 
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, removeAttr, reorder, replaceAttr, select, setAttr, setCascaded, setContext, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setThreadInfo, supportsReordering, 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, removeAttr, reorder, replaceAttr, select, setAttr, setCascaded, setContext, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setThreadInfo, supportsReorderingprotected String type
protected int[] values
protected int count
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 Integer getNextChoice()
getNextChoice in interface ChoiceGenerator<Integer>public String toString()
toString in class ChoiceGeneratorBase<Integer>public TypedObjectChoice randomize()
ChoiceGeneratorrandomize in interface ChoiceGenerator<Integer>randomize in class ChoiceGeneratorBase<Integer>public Class<Integer> getChoiceType()
getChoiceType in interface ChoiceGenerator<Integer>