![]() |
Synthia
Generic and flexible data structure generator
|
| <T> |
Definition at line 16 of file Unbound.java.

Public Member Functions | |
| Unbound (Picker< T > source, Picker< Float > float_source) | |
| void | reset () |
| Puts the picker back into its initial state. More... | |
| T | pick () |
| Picks an object. More... | |
| Unbound< T > | duplicate (boolean with_state) |
| Creates a copy of the picker. More... | |
Protected Member Functions | |
| T | pickFromList () |
Protected Attributes | |
| Picker< T > | m_source |
| Picker< Float > | m_floatSource |
| List< T > | m_previousValues |
| boolean | m_sourceDone |
| ca.uqac.lif.synthia.enumerative.Unbound< T >.Unbound | ( | Picker< T > | source, |
| Picker< Float > | float_source | ||
| ) |
Definition at line 26 of file Unbound.java.
| Unbound<T> ca.uqac.lif.synthia.enumerative.Unbound< T >.duplicate | ( | boolean | with_state | ) |
Creates a copy of the picker.
| with_state | If set to false, the returned copy is set to the class' initial state (i.e. same thing as calling the picker's constructor). If set to true, the returned copy is put into the same internal state as the object it is copied from. |
Implements ca.uqac.lif.synthia.Picker< T >.
Definition at line 77 of file Unbound.java.
| T ca.uqac.lif.synthia.enumerative.Unbound< T >.pick | ( | ) |
Picks an object.
Typically, this method is expected to return non-null objects; a null return value is used to signal that no more objects will be produced. That is, once this method returns null, it should normally return null on all subsequent calls.
Implements ca.uqac.lif.synthia.Picker< T >.
Definition at line 44 of file Unbound.java.
|
protected |
Definition at line 66 of file Unbound.java.
| void ca.uqac.lif.synthia.enumerative.Unbound< T >.reset | ( | ) |
Puts the picker back into its initial state.
This means that the sequence of calls to pick() will produce the same values as when the object was instantiated.
Implements ca.uqac.lif.synthia.Picker< T >.
Definition at line 36 of file Unbound.java.
|
protected |
Definition at line 20 of file Unbound.java.
|
protected |
Definition at line 22 of file Unbound.java.
|
protected |
Definition at line 18 of file Unbound.java.
|
protected |
Definition at line 24 of file Unbound.java.