 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file. 1 package ca.uqac.lif.synthia.string;
RandomPrefix(String string, RandomInteger prefix_size)
Private constructor used by the duplicate(boolean) method.
RandomPrefix duplicate(boolean with_state)
Creates a copy of the picker.
Interface signaling that a picker can be shrunk.
String m_string
The string used to generate prefixes.
Miscellaneous pickers performing various functions.
Shrinkable< String > shrink(String o)
static final transient RandomFloat instance
A public static instance of RandomFloat.
RandomPrefix(String string)
Public constructor to create a new instance of this Picker.
Like RandomSubString, but this time, the Picker returns a prefix of the original strings of randomly ...
Pickers that produce pseudo-random objects such as numbers.
A RelativePicker that only throws a NoMoreElementException when the pick() method is called.
Shrinkable< String > shrink(String element, Picker< Float > decision, float magnitude)
Create a new RandomPrefix picker based on a given string.
void reset()
Puts the picker back into its initial state.
RandomInteger setSeed(int seed)
Picks an integer uniformly in an interval.
Integer pick()
Picks a random integer.
RandomInteger duplicate(boolean with_state)
Creates a copy of the RandomInteger picker.
void reset()
Puts the picker back into its initial state.
RandomPrefix setSeed(int seed)
Set the seed of the random generator.
Picks a floating point number uniformly in an interval.
Interface implemented by objects that can be seeded.
String pick()
Picks an object.
RandomInteger m_prefixSize
RandomInteger picker to select the size of a generated prefix.