public class Node extends Object
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.| Constructor and Description |
|---|
Node(String id,
String operatorName)
Constructs a new
Node instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addSource(NodeSource source) |
DomElement |
getConfiguration() |
String |
getId()
Gets the uniqe node identifier.
|
String |
getOperatorName()
Gets the name of the operator.
|
NodeSource |
getSource(int index)
Returns the
NodeSource at the given index position |
NodeSource[] |
getSources() |
void |
removeSource(NodeSource source)
Removes a
NodeSource from the Node. |
void |
setConfiguration(DomElement configuration)
Sets the configuration for the node's
Operator that
computes the target Product. |
public String getId()
public String getOperatorName()
OperatorSpi
or an alias name.public void addSource(NodeSource source)
source - the NodeSource to be added.public void removeSource(NodeSource source)
NodeSource from the Node.source - the NodeSource to be removedpublic NodeSource getSource(int index) throws IndexOutOfBoundsException
NodeSource at the given index positionindex - the index of the NodeSource to returnNodeSource at the given index positionIndexOutOfBoundsException - if index is out of rangepublic NodeSource[] getSources()
public DomElement getConfiguration()
DomElement storing the configuration elements of the node's
Operator.public void setConfiguration(DomElement configuration)
Operator that
computes the target Product.configuration - The configurationCopyright © 2014–2017 European Space Agency (ESA). All rights reserved.