 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package ca.uqac.lif.synthia.collection;
59 for (
int i = 0; i <
m_pickers.length; i++)
96 Object[] out =
new Object[
m_pickers.length];
97 for (
int i = 0; i <
m_pickers.length; i++)
132 protected abstract T
getOutput(Object ... objects);
Picker<?>[] duplicateM_pickers(boolean with_state)
Protected method to duplicate m_pickers.
Picker< T > duplicate(boolean with_state)
Creates a copy of the composite picker.
Picker<?>[] m_pickers
The pickers used to generate the values.
T pick()
Picks a value of each picker in m_pickers.
Picker that merges the result of other pickers into a composite data structure.
CompositePicker(Picker<?> ... pickers)
Creates a new composite picker.
abstract CompositePicker< T > newPicker(Picker<?> ... pickers)
Creates a duplicate of the current picker.
void reset()
Puts the composite picker back into its initial state.
Picker< T > duplicate(boolean with_state)
Creates a copy of the picker.
abstract T getOutput(Object ... objects)
Creates the output composite object from the internal values that have been picked.