Synthia
Generic and flexible data structure generator
ca.uqac.lif.synthia.enumerative.Unbound< T > Class Template Reference

Detailed Description

Author
Sylvain Hallé
Parameters
<T>

Definition at line 16 of file Unbound.java.

Inheritance diagram for ca.uqac.lif.synthia.enumerative.Unbound< T >:

Public Member Functions

 Unbound (Picker< T > source, Picker< Float > float_source)
 
void reset ()
 Puts the picker back into its initial state. More...
 
pick ()
 Picks an object. More...
 
Unbound< T > duplicate (boolean with_state)
 Creates a copy of the picker. More...
 

Protected Member Functions

pickFromList ()
 

Protected Attributes

Picker< T > m_source
 
Picker< Float > m_floatSource
 
List< T > m_previousValues
 
boolean m_sourceDone
 

Constructor & Destructor Documentation

◆ Unbound()

ca.uqac.lif.synthia.enumerative.Unbound< T >.Unbound ( Picker< T >  source,
Picker< Float >  float_source 
)

Definition at line 26 of file Unbound.java.

Member Function Documentation

◆ duplicate()

Unbound<T> ca.uqac.lif.synthia.enumerative.Unbound< T >.duplicate ( boolean  with_state)

Creates a copy of the picker.

Parameters
with_stateIf 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.
Returns
The copy of the picker

Implements ca.uqac.lif.synthia.Picker< T >.

Definition at line 77 of file Unbound.java.

◆ 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.

Returns
The object

Implements ca.uqac.lif.synthia.Picker< T >.

Definition at line 44 of file Unbound.java.

◆ pickFromList()

T ca.uqac.lif.synthia.enumerative.Unbound< T >.pickFromList ( )
protected

Definition at line 66 of file Unbound.java.

◆ 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.

Member Data Documentation

◆ m_floatSource

Picker<Float> ca.uqac.lif.synthia.enumerative.Unbound< T >.m_floatSource
protected

Definition at line 20 of file Unbound.java.

◆ m_previousValues

List<T> ca.uqac.lif.synthia.enumerative.Unbound< T >.m_previousValues
protected

Definition at line 22 of file Unbound.java.

◆ m_source

Picker<T> ca.uqac.lif.synthia.enumerative.Unbound< T >.m_source
protected

Definition at line 18 of file Unbound.java.

◆ m_sourceDone

boolean ca.uqac.lif.synthia.enumerative.Unbound< T >.m_sourceDone
protected

Definition at line 24 of file Unbound.java.


The documentation for this class was generated from the following file: