 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file. 1 package examples.sequences;
20 @SuppressWarnings(
"unchecked")
21 public static
void main(String[] args)
26 new Selector<String>(picker)
27 .add(
new Leaf<String>(
"A"), 0.5)
28 .add(
new Sequence<String>(
new Leaf<String>(
"B"),
new Leaf<String>(
"C")), 0.5),
29 new Selector<String>(picker)
30 .add(
new Leaf<String>(
"D"), 0.25)
31 .add(
new Sequence<String>(
new Leaf<String>(
"E"),
new Leaf<String>(
"F")), 0.75)
41 System.out.println(s);
Generates a sequence of objects by following a behavior tree.
static void main(String[] args)
Pickers that produce pseudo-random objects such as numbers.
Selector node in a behavior tree.
Leaf node of a behavior tree.
RandomFloat setSeed(int seed)
Generates a random sequence of strings whose content is defined by a behavior tree.
Picks a floating point number uniformly in an interval.
Sequence node in a behavior tree.
Pickers related to the generation of a sequence of values.