public class IntIntervalGenerator extends ChoiceGeneratorBase<Integer> implements IntChoiceGenerator
| Modifier and Type | Field and Description |
|---|---|
protected int |
delta |
protected int |
max |
protected int |
min |
protected int |
next |
| Constructor and Description |
|---|
IntIntervalGenerator(Config conf,
String id) |
IntIntervalGenerator(int min,
int max)
Deprecated.
|
IntIntervalGenerator(int min,
int max,
int delta)
Deprecated.
|
IntIntervalGenerator(String id,
int min,
int max) |
IntIntervalGenerator(String id,
int min,
int max,
int delta) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
advance to the next choice.
|
Integer[] |
getChoices() |
Class<Integer> |
getChoiceType() |
Integer |
getNextChoice() |
int |
getProcessedNumberOfChoices() |
int |
getTotalNumberOfChoices() |
boolean |
hasMoreChoices() |
boolean |
isAscending() |
ChoiceGenerator<Integer> |
randomize()
turn the order of choices random (if it isn't already).
|
ChoiceGenerator<Integer> |
reorder(Comparator<Integer> comparator)
reorder according to a user provided comparator
|
void |
reset()
this has to reset the CG to its initial state, which includes resetting
'isDone'
|
void |
reverse()
note this should only be called before the CG is advanced since it resets
the enumeration state
|
boolean |
supportsReordering() |
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, replaceAttr, select, setAttr, setCascaded, setContext, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setThreadInfo, 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, replaceAttr, select, setAttr, setCascaded, setContext, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setThreadInfoprotected int min
protected int max
protected int next
protected int delta
@Deprecated public IntIntervalGenerator(int min, int max)
@Deprecated public IntIntervalGenerator(int min, int max, int delta)
public IntIntervalGenerator(String id, int min, int max, int delta)
public IntIntervalGenerator(String id, int min, int max)
public void reset()
ChoiceGeneratorreset in interface ChoiceGenerator<Integer>public Integer getNextChoice()
getNextChoice in interface ChoiceGenerator<Integer>public boolean hasMoreChoices()
hasMoreChoices in interface ChoiceGenerator<Integer>public void advance()
ChoiceGeneratoradvance in interface ChoiceGenerator<Integer>public int getTotalNumberOfChoices()
getTotalNumberOfChoices in interface ChoiceGenerator<Integer>public int getProcessedNumberOfChoices()
getProcessedNumberOfChoices in interface ChoiceGenerator<Integer>public boolean isAscending()
public void reverse()
public Integer[] getChoices()
public boolean supportsReordering()
supportsReordering in interface ChoiceGenerator<Integer>supportsReordering in class ChoiceGeneratorBase<Integer>public ChoiceGenerator<Integer> reorder(Comparator<Integer> comparator)
ChoiceGeneratorBasereorder in interface ChoiceGenerator<Integer>reorder in class ChoiceGeneratorBase<Integer>public String toString()
toString in class ChoiceGeneratorBase<Integer>public Class<Integer> getChoiceType()
getChoiceType in interface ChoiceGenerator<Integer>public ChoiceGenerator<Integer> randomize()
ChoiceGeneratorrandomize in interface ChoiceGenerator<Integer>randomize in class ChoiceGeneratorBase<Integer>