 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file. 1 package ca.uqac.lif.synthia.enumerative;
109 private void internalPick()
114 m_done = internalIsDone();
126 for (
int j = 0; j < i; j++)
133 m_done = internalIsDone();
138 throw new NoMoreElementException();
150 private boolean internalIsDone()
167 private void firstPick()
176 @SuppressWarnings(
"rawtypes")
boolean m_done
Flag to check if the picker finished generating objects.
AllPickers duplicate(boolean with_state)
Creates a copy of the picker.
Object[] m_values
An array to store the combination to return.
void reset()
Puts the picker back into its initial state.
boolean m_firstPick
Flag to check if it's the first pick.
Interface used to signal that a picker enumerates all values from a set.
Object[] pick()
Picks an object.
Picker who implements Bounded.
Bounded<?>[] m_enumPickers
The array of pickers used to generate all the possible combinations.
An exception to throw when a picker can't pick an other element.
AllPickers(Bounded<?>[] enum_pickers)
boolean isDone()
Signals if the picker enumerates all values from a set.