 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package ca.uqac.lif.synthia.util;
21 import java.util.ArrayDeque;
22 import java.util.HashSet;
23 import java.util.Queue;
140 throw new UnsupportedOperationException();
A picker that acts as a proxy for the values obtained by the parent Share picker.
Set< QueuePicker > m_pickers
The set of "spawned" copies created.
void reset()
Puts the picker back into its initial state.
Picker<? extends T > m_picker
The underlying picker from which elements are taken.
Share(Picker<? extends T > picker)
Creates a new instance of the share picker.
void ask()
Asks for a new value from the underlying picker, and adds this value to the internal queue of each li...
QueuePicker getCopy()
Creates a new copy of QueuePicker from the original picker.
void reset()
Resets the original picker and all its copies.
Picker< T > duplicate(boolean with_state)
Creates a copy of the picker.
Allows values of a single picker to be shared among multiple copies of a picker instance.
An exception to throw when a picker can't pick an other element.
void reset()
Puts the picker back into its initial state.