 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package examples.graphs;
39 public static void main(String[] args)
44 System.out.println(height.
pick());
48 color.
add(
"blue", 0.33).add(
"red", 0.33).add(
"yellow", 0.34);
Miscellaneous pickers performing various functions.
Node< T > pick()
Picks an object.
Picker that returns values taken from a list.
static void main(String[] args)
Pickers that produce pseudo-random objects such as numbers.
Picker that returns the same object every time.
Pickers for the generation of trees made of nodes with labels.
RandomFloat setSeed(int seed)
Choice< T > add(ProbabilityChoice< T > pc)
Adds an object-probability association.
RandomInteger setSeed(int seed)
Picks an integer uniformly in an interval.
Integer pick()
Picks a random integer.
static void treeToDot(PrintStream ps, Node< String > root)
Simple implementation of a labeled nodel.
Picks a floating point number uniformly in an interval.
Picks an element from a collection, where the probability of picking each element can be user-defined...
Pickers related to the generation of a sequence of values.
Generates a tree of labeled nodes.