 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package ca.uqac.lif.synthia.sequence;
21 import java.util.ArrayList;
22 import java.util.List;
130 return current_instance.
pick();
List< Picker< T > > m_instances
The picker instances that are currently "alive".
void reset()
Puts the picker back into its initial state.
static final transient int s_maxTries
Maximum number of tries to get a new element from an instance before giving up.
Knit(Picker<? extends Picker< T >> instance_picker, Picker< Boolean > new_instance, Picker< Boolean > renew_instance, Picker< Float > float_source)
Creates a new instance of the picker.
Picker< Float > m_floatSource
A picker used to pick a living instance.
Picker producing an "interleaved" sequence of objects from calls to multiple other pickers.
Knit< T > duplicate(boolean with_state)
Creates a copy of the picker.
Picker< Boolean > m_renewInstance
A picker deciding whether to start a new instance when one has just finished.
An exception to throw when a picker can't pick an other element.
Picker<? extends Picker< T > > m_instancePicker
A picker producing pickers.
Picker< T > duplicate(boolean with_state)
Creates a copy of the picker.
Picker< Boolean > m_newInstance
A picker deciding whether to start a new instance at any moment.
void reset()
Puts the picker back into its initial state.