Synthia
Generic and flexible data structure generator
ca.uqac.lif.synthia.IndexPicker Interface Reference

Detailed Description

Picker for an integer from 0 to a fixed bound.

This interface extends Picker<Integer> by allowing the bound to be specified and modified after the construction of the object, using setInterval().

Author
Sylvain Hallé

Definition at line 30 of file IndexPicker.java.

Inheritance diagram for ca.uqac.lif.synthia.IndexPicker:

Public Member Functions

IndexPicker setInterval (int size)
 Sets the range for the index picker. More...
 
IndexPicker duplicate (boolean with_state)
 Creates a copy of the picker. More...
 
- Public Member Functions inherited from ca.uqac.lif.synthia.Picker< Integer >
void reset ()
 Puts the picker back into its initial state. More...
 
pick ()
 Picks an object. More...
 
Picker< T > duplicate (boolean with_state)
 Creates a copy of the picker. More...
 

Member Function Documentation

◆ duplicate()

IndexPicker ca.uqac.lif.synthia.IndexPicker.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

◆ setInterval()

IndexPicker ca.uqac.lif.synthia.IndexPicker.setInterval ( int  size)

Sets the range for the index picker.

Parameters
sizeThe maximum value that can be picked
Returns
This picker

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