public class PermutationCG extends ChoiceGeneratorBase<int[]>
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
permutation |
protected PermutationGenerator |
pg |
| Constructor and Description |
|---|
PermutationCG(PermutationGenerator pg) |
PermutationCG(java.lang.String id,
PermutationGenerator pg) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
advance to the next choice.
|
java.lang.Class<int[]> |
getChoiceType() |
int[] |
getNextChoice() |
int |
getProcessedNumberOfChoices() |
int |
getTotalNumberOfChoices() |
boolean |
hasMoreChoices() |
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, getChoice, getId, getIdRef, getInsn, getNextAttr, getNumberOfParents, getPreviousChoiceGenerator, getPreviousChoiceGeneratorOfType, getProcessedChoices, getSourceLocation, getStateId, getThreadInfo, getUnprocessedChoices, hasAttr, hasAttr, hasAttrValue, init, isCascaded, isDone, isProcessed, isSchedulingPoint, randomize, removeAttr, reorder, replaceAttr, select, setAttr, setCascaded, setContext, setCurrent, setDone, setId, setIdRef, setInsn, setPreviousChoiceGenerator, setStateId, setThreadInfo, supportsReordering, toString, useRandomizationprotected PermutationGenerator pg
protected int[] permutation
public PermutationCG(PermutationGenerator pg)
public PermutationCG(java.lang.String id,
PermutationGenerator pg)
public int[] getNextChoice()
public java.lang.Class<int[]> getChoiceType()
public boolean hasMoreChoices()
public void advance()
ChoiceGeneratorpublic void reset()
ChoiceGeneratorpublic int getTotalNumberOfChoices()
public int getProcessedNumberOfChoices()