public class BooleanChoiceGenerator extends ChoiceGeneratorBase<java.lang.Boolean>
| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
protected boolean |
falseFirst |
protected boolean |
next |
| Constructor and Description |
|---|
BooleanChoiceGenerator(Config conf,
java.lang.String id) |
BooleanChoiceGenerator(java.lang.String id) |
BooleanChoiceGenerator(java.lang.String id,
boolean falseFirst) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
advance to the next choice.
|
java.lang.Boolean |
getChoice(int idx)
explicit choice enumeration.
|
java.lang.Class<java.lang.Boolean> |
getChoiceType() |
java.lang.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
|
java.lang.String |
toString() |
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, removeAttr, reorder, replaceAttr, select, setAttr, setCascaded, setContext, setCurrent, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setStateId, setThreadInfo, supportsReordering, useRandomizationprotected boolean falseFirst
protected int count
protected boolean next
public BooleanChoiceGenerator(Config conf, java.lang.String id)
public BooleanChoiceGenerator(java.lang.String id)
public BooleanChoiceGenerator(java.lang.String id,
boolean falseFirst)
public boolean hasMoreChoices()
public java.lang.Boolean getNextChoice()
public java.lang.Class<java.lang.Boolean> getChoiceType()
public void advance()
ChoiceGeneratorpublic java.lang.Boolean getChoice(int idx)
ChoiceGeneratorBasegetChoice in interface ChoiceGenerator<java.lang.Boolean>getChoice in class ChoiceGeneratorBase<java.lang.Boolean>public void reset()
ChoiceGeneratorpublic int getTotalNumberOfChoices()
public int getProcessedNumberOfChoices()
public boolean isFalseFirst()
public void reverse()
public java.lang.String toString()
toString in class ChoiceGeneratorBase<java.lang.Boolean>public BooleanChoiceGenerator randomize()
ChoiceGeneratorrandomize in interface ChoiceGenerator<java.lang.Boolean>randomize in class ChoiceGeneratorBase<java.lang.Boolean>