 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package examples.provenance;
21 import java.util.List;
23 import ca.
uqac.
lif.petitpoucet.ComposedPart;
25 import ca.
uqac.
lif.petitpoucet.function.LineageDotRenderer;
26 import ca.
uqac.
lif.petitpoucet.function.vector.NthElement;
56 @SuppressWarnings(
"unchecked")
57 public static
void main(String[] args)
69 protected boolean select(
float[] p) {
return p[0] != p[1]; }
75 List<float[]> l = list.
pick();
81 LineageDotRenderer renderer =
new LineageDotRenderer(tree);
82 renderer.render(System.out);
static final NthSuccessiveOutput FIRST
A static reference to an instance of the class with index = 0, thereby referring to the first output ...
Picker that returns the first object fetched from another picker and repeats it endlessly.
List< T > pick()
Picks an object.
A variation of ExplanationList1 where a different explanation is requested, showing that fine-grained...
Pickers generating and manipulating collections, such as lists and sets.
Miscellaneous pickers performing various functions.
Generates a vector by independently picking a value for each of its coordinates.
static PartNode explain(Part part, Picker<?> picker)
Pickers generating multi-dimensional numerical vectors.
Picker that returns values taken from a list.
Pickers that produce pseudo-random objects such as numbers.
Picker that returns the same object every time.
static void println(PrintStream ps, Object o)
Calls print(PrintStream, Object) and appends a new line.
Object providing a few utility methods to simplify the examples in this project.
Objects related to the explanation of results produced by pickers.
RandomInteger setSeed(int seed)
Picks an integer uniformly in an interval.
Returns object from a picker satisfying a condition.
Generates a sequence of monotonically increasing numerical values.
Pickers that produce a value in relation to another value.
Constructs an explanation graph for the output produced by a picker.
static void main(String[] args)
Pickers related to the generation of a sequence of values.
A Part pointing to the n-th output produced by a picker since its last call to reset().