 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package ca.uqac.lif.synthia.util;
Interface signaling that a picker can be shrunk.
T pick()
Picks the constant value.
Shrinkable< T > shrink(T o)
Shrinks a picker with default parameters.
static final transient RandomFloat instance
A public static instance of RandomFloat.
T m_value
The value to return.
String toString()
Returns the constant value into a string.
Constant< T > duplicate(boolean with_state)
Creates a copy of the constant picker.
Pickers that produce pseudo-random objects such as numbers.
Picker that returns the same object every time.
Constant(T value)
Creates a new constant.
A RelativePicker that only throws a NoMoreElementException when the pick() method is called.
Shrinkable< T > shrink(T o, Picker< Float > decision, float m)
Shrinks a picker.
Picks a floating point number uniformly in an interval.
void reset()
Puts the constant back into its initial state.