 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package examples.mutation;
21 import java.util.List;
96 public static void main(String[] args)
110 e_choices.
add(
new Offset(
null, rf), 0.5);
118 l_choices.
add(me, 0.33);
124 for (
int i = 0; i < 10; i++)
126 System.out.println(m.
pick());
Transforms an object from a picker by selecting a mutator and applying it to an object.
static void main(String[] args)
Picker that returns the first object fetched from another picker and repeats it endlessly.
Pickers generating and manipulating collections, such as lists and sets.
Miscellaneous pickers performing various functions.
Picker that selects an element of a list and applies the result of a mutator on this element.
Pickers that produce pseudo-random objects such as numbers.
Picker that returns the same object every time.
Choice< T > add(ProbabilityChoice< T > pc)
Adds an object-probability association.
Picks an integer uniformly in an interval.
Generates a sequence of monotonically increasing numerical values.
Illustration of mutation operations on lists and list elements.
A picker that applies a transformation ("mutation") on the value produced by another picker.
Picks a floating point number uniformly in an interval.
Takes the numerical value of a picker, and offsets it by an amount determined by another picker.
Picks an element from a collection, where the probability of picking each element can be user-defined...
Mutator that receives a list and selects two elements to be swapped.
Mutator that receives a list and selects an element to delete from it.