 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package ca.uqac.lif.synthia.util;
21 import ca.
uqac.
lif.petitpoucet.NodeFactory;
24 import ca.
uqac.
lif.petitpoucet.function.ExplanationQueryable;
129 PartNode root = f.getPartNode(p,
this);
131 root.addChild(child);
Picker that returns the first object fetched from another picker and repeats it endlessly.
Interface signaling that a picker can be shrunk.
static Part replaceOutIndexBy(Part from, int index)
Given an arbitrary designator, replaces the first occurrence of NthOutput by an instance of NthInput ...
Shrinkable< T > shrink(T o, Picker< Float > decision, float m)
Shrinks a picker.
PartNode getExplanation(Part p, NodeFactory f)
A variant of PickIf that selects an element if it is smaller than a reference object.
PartNode getExplanation(Part p)
static final transient RandomFloat instance
A public static instance of RandomFloat.
Pickers that produce pseudo-random objects such as numbers.
Objects related to the explanation of results produced by pickers.
Shrinkable< T > shrink(T o)
Shrinks a picker with default parameters.
Freeze< T > duplicate(boolean with_state)
Creates a copy of the picker.
void reset()
Puts the freeze picker back into its initial state.
Freeze(Picker< T > picker)
Creates a new freeze picker.
Pickers that produce a value in relation to another value.
T m_value
The "frozen" value.
T pick()
Picks a value or returns the same value if m_value is not null.
Picks a floating point number uniformly in an interval.
Picker< T > m_innerPicker
The internal picker that is to be called.
A Part pointing to the n-th output produced by a picker since its last call to reset().