Package org.esa.snap.core.gpf.graph
Class Node
java.lang.Object
org.esa.snap.core.gpf.graph.Node
A node in a processing graph. A
Node has an arbitrary nummber
of sources and produces one target product. A set of nodes may be joined
together via the sources to form a directed acyclic graph (DAG). The
Node uses an Operator implementation to
transform the target Products of the source Nodes to a target Product. The
Node will create its Operator by using the
given OperatorSpi.- Since:
- 4.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSource(NodeSource source) voidattachGraphNodeUpdater(GraphNodeUpdater graphNodeUpdater) getId()Gets the uniqe node identifier.Gets the name of the operator.getSource(int index) Returns theNodeSourceat the given index positionvoidremoveSource(NodeSource source) Removes aNodeSourcefrom theNode.voidsetConfiguration(DomElement configuration) Sets the configuration for the node'sOperatorthat computes the target Product.voidupdateGraphNode(NodeContext nodeContext)
-
Constructor Details
-
Node
Constructs a newNodeinstance.- Parameters:
id- a unique identifier for the nodeoperatorName- the name of the operator
-
-
Method Details
-
attachGraphNodeUpdater
-
updateGraphNode
- Throws:
GraphException
-
getId
Gets the uniqe node identifier.- Returns:
- the identifier
-
getOperatorName
Gets the name of the operator. This can be either the fully qualified class name of theOperatorSpior an alias name.- Returns:
- the name of the operator.
-
addSource
- Parameters:
source- theNodeSourceto be added.
-
removeSource
Removes aNodeSourcefrom theNode.- Parameters:
source- theNodeSourceto be removed
-
getSource
Returns theNodeSourceat the given index position- Parameters:
index- the index of theNodeSourceto return- Returns:
- the
NodeSourceat the given index position - Throws:
IndexOutOfBoundsException- if index is out of range
-
getSources
- Returns:
- an array containing the Sources of this node.
-
getConfiguration
- Returns:
- A
DomElementstoring the configuration elements of the node's Operator.
-
setConfiguration
Sets the configuration for the node'sOperatorthat computes the target Product.- Parameters:
configuration- The configuration
-