 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package ca.uqac.lif.synthia.vector;
22 import ca.
uqac.
lif.petitpoucet.NodeFactory;
25 import ca.
uqac.
lif.petitpoucet.function.ExplanationQueryable;
26 import ca.
uqac.
lif.petitpoucet.function.vector.NthElement;
52 @SuppressWarnings(
"unchecked")
79 @SuppressWarnings(
"unchecked")
107 PartNode root = f.getPartNode(p,
this);
115 AndNode and = f.getAndNode();
127 root.addChild(f.getPartNode(new_p,
m_dimensions[part_index]));
134 return "PrismPicker";
float[] pick()
Picks an object.
void reset()
Puts the picker back into its initial state.
PartNode getExplanation(Part p, NodeFactory f)
PartNode getExplanation(Part p)
Generates a vector by independently picking a value for each of its coordinates.
Interface for pickers that generate arrays of floating-point numbers.
Objects related to the explanation of results produced by pickers.
static Part removeNthElement(Part from)
Removes the instance of NthElement that stands just before the first instance of NthSuccessiveOutput ...
PrismPicker(Picker<? extends Number > ... dimensions)
Creates a new prism picker.
static int mentionedOutput(Part d)
Retrieves the output sequence index mentioned in a designator.
PrismPicker duplicate(boolean with_state)
Creates a copy of the picker.
Picker< T > duplicate(boolean with_state)
Creates a copy of the picker.
Picker<? extends Number >[] m_dimensions
The pickers for each dimension of the vector.
int getDimension()
Returns the dimension of the picker, i.e.
A Part pointing to the n-th output produced by a picker since its last call to reset().