 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file. 1 package ca.uqac.lif.synthia.string;
19 super(
string, prefix_size);
40 String s = super.pick();
46 return s.substring(start_index, s.length());
A combination of RandomPrefix and RandomSuffix.
Interface signaling that a picker can be shrunk.
String m_string
The string used to generate prefixes.
Miscellaneous pickers performing various functions.
RandomTrim(String string)
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.
String pick()
Picks an object.
RandomInteger setInterval(int min, int max)
Sets the interval in which integers are picked.
A RelativePicker that only throws a NoMoreElementException when the pick() method is called.
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.
RandomTrim(String string, RandomInteger prefix_size)
RandomTrim duplicate(boolean with_state)
Creates a copy of the picker.
RandomInteger m_prefixSize
RandomInteger picker to select the size of a generated prefix.
Shrinkable< String > shrink(String element, Picker< Float > decision, float magnitude)
Create a new RandomPrefix picker based on a given string.