public class BooleanChoiceGenerator extends ChoiceGeneratorBase<Boolean>
Modifier and Type | Field and Description |
---|---|
protected int |
count |
protected boolean |
falseFirst |
protected boolean |
next |
Constructor and Description |
---|
BooleanChoiceGenerator(Config conf,
String id) |
BooleanChoiceGenerator(String id) |
BooleanChoiceGenerator(String id,
boolean falseFirst) |
Modifier and Type | Method and Description |
---|---|
void |
advance()
advance to the next choice.
|
Class<Boolean> |
getChoiceType() |
Boolean |
getNextChoice() |
int |
getProcessedNumberOfChoices() |
int |
getTotalNumberOfChoices() |
boolean |
hasMoreChoices() |
boolean |
isFalseFirst() |
BooleanChoiceGenerator |
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'
|
void |
reverse()
note this should only be called before the first advance since it resets
the enumeration state
|
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, useRandomization
protected boolean falseFirst
protected int count
protected boolean next
public BooleanChoiceGenerator(String id)
public BooleanChoiceGenerator(String id, boolean falseFirst)
public boolean hasMoreChoices()
public Boolean getNextChoice()
public void advance()
ChoiceGenerator
public void reset()
ChoiceGenerator
public int getTotalNumberOfChoices()
public int getProcessedNumberOfChoices()
public boolean isFalseFirst()
public void reverse()
public String toString()
toString
in class ChoiceGeneratorBase<Boolean>
public BooleanChoiceGenerator randomize()
ChoiceGenerator
randomize
in interface ChoiceGenerator<Boolean>
randomize
in class ChoiceGeneratorBase<Boolean>