public class VectorApply extends ParameterizedVectorFunction
AtomicFunction.AtomicFunctionInputPin, AtomicFunction.AtomicFunctionOutputPin
m_function, m_lastInstances
m_lastOutputs
m_lastInputs
m_context, m_inputPins, m_outputPins
Constructor and Description |
---|
VectorApply(Function f)
Creates a new instance of the function.
|
Modifier and Type | Method and Description |
---|---|
VectorApply |
duplicate(boolean with_state)
Creates a possibly stateful copy of an object.
|
PartNode |
getExplanation(Part part,
NodeFactory factory)
Produces an explanation graph for a given part, using nodes provided by
a given factory.
|
protected java.util.List<?> |
getVectorValue(java.util.List<?>... in_lists)
Computes the output list based on input lists.
|
java.lang.String |
toString() |
copyInto, getSubNode, reset
getOutputValue, replaceElementByOutput, replaceInputByElement
getMinLength, getValue
copyInto, duplicate, evaluate, getContext, getExplanation, getInputPin, getOutputPin, setContext
addToInput, addToOutput, copyInto, getInputArity, getInputLinks, getOutputArity, getOutputLinks, removeFromInput, removeFromOutput, setToInput, setToOutput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addToInput, addToOutput, getInputArity, getInputLinks, getOutputArity, getOutputLinks, removeFromInput, removeFromOutput, setToInput, setToOutput
public VectorApply(Function f)
f
- The function to apply on each element of the input vectorprotected java.util.List<?> getVectorValue(java.util.List<?>... in_lists)
VectorOutputFunction
getVectorValue
in class VectorOutputFunction
in_lists
- The input listspublic PartNode getExplanation(Part part, NodeFactory factory)
ExplanationQueryable
getExplanation
in interface ExplanationQueryable
getExplanation
in class VectorOutputFunction
part
- The part used as the starting point of the explanationfactory
- The factory that provides nodesPartNode
with
part
as its part, and the callee as the subject. Other nodes
may or may not be attached to this root, depending on the subject and
the explanation.public VectorApply duplicate(boolean with_state)
Duplicable
duplicate
in interface Duplicable
duplicate
in class Node
with_state
- Set to true
for a stateful copy, false
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © Sylvain HallĂ©. All Rights Reserved.