public class BreakGenerator extends ChoiceGeneratorBase<ThreadInfo> implements ThreadChoiceGenerator
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isTerminator |
protected int |
state |
protected ThreadInfo |
ti |
| Constructor and Description |
|---|
BreakGenerator(java.lang.String id,
ThreadInfo ti,
boolean isTerminator) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
advance to the next choice.
|
boolean |
contains(ThreadInfo ti) |
ThreadInfo |
getChoice(int idx)
explicit choice enumeration.
|
java.lang.Class<ThreadInfo> |
getChoiceType() |
ThreadInfo |
getNextChoice() |
int |
getProcessedNumberOfChoices() |
int |
getTotalNumberOfChoices() |
boolean |
hasMoreChoices() |
boolean |
isSchedulingPoint() |
void |
printOn(java.io.PrintWriter pw) |
ChoiceGenerator<ThreadInfo> |
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'
|
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, removeAttr, reorder, replaceAttr, select, setAttr, setCascaded, setContext, setCurrent, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setStateId, setThreadInfo, supportsReordering, toString, useRandomizationequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAttr, 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, isCascaded, isDone, isProcessed, removeAttr, reorder, replaceAttr, select, setAttr, setCascaded, setContext, setCurrent, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setStateId, setThreadInfo, supportsReorderingprotected ThreadInfo ti
protected int state
protected boolean isTerminator
public BreakGenerator(java.lang.String id,
ThreadInfo ti,
boolean isTerminator)
public ThreadInfo getNextChoice()
getNextChoice in interface ChoiceGenerator<ThreadInfo>public ThreadInfo getChoice(int idx)
ChoiceGeneratorBasegetChoice in interface ChoiceGenerator<ThreadInfo>getChoice in class ChoiceGeneratorBase<ThreadInfo>public void printOn(java.io.PrintWriter pw)
printOn in interface ThreadChoiceGeneratorpublic void advance()
ChoiceGeneratoradvance in interface ChoiceGenerator<ThreadInfo>public int getProcessedNumberOfChoices()
getProcessedNumberOfChoices in interface ChoiceGenerator<ThreadInfo>public int getTotalNumberOfChoices()
getTotalNumberOfChoices in interface ChoiceGenerator<ThreadInfo>public boolean hasMoreChoices()
hasMoreChoices in interface ChoiceGenerator<ThreadInfo>public void reset()
ChoiceGeneratorreset in interface ChoiceGenerator<ThreadInfo>public boolean contains(ThreadInfo ti)
contains in interface ThreadChoiceGeneratorpublic java.lang.Class<ThreadInfo> getChoiceType()
getChoiceType in interface ChoiceGenerator<ThreadInfo>public ChoiceGenerator<ThreadInfo> randomize()
ChoiceGeneratorrandomize in interface ChoiceGenerator<ThreadInfo>randomize in class ChoiceGeneratorBase<ThreadInfo>public boolean isSchedulingPoint()
isSchedulingPoint in interface ChoiceGenerator<ThreadInfo>isSchedulingPoint in class ChoiceGeneratorBase<ThreadInfo>