Package org.esa.snap.core.gpf.graph
Class NodeSource
- java.lang.Object
-
- org.esa.snap.core.gpf.graph.NodeSource
-
public class NodeSource extends Object
ANodeSource
represents a mapping from an nodeId to aNode
instance. TheGraphIO
uses sources to simplify the xml deserialization. Use this class to set the sources ofNode
s to aNode
with the given nodeId. TheGraphProcessor
will resolve the nodeId to the respectiveNode
if present.
-
-
Constructor Summary
Constructors Constructor Description NodeSource(String name, String sourceNodeId)
Constructs aNodeSource
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Gets the name under which this source can be accessed.Node
getSourceNode()
Returns theNode
instance associatied with thisNodeSource
.String
getSourceNodeId()
Gets the identifier of the source node.void
setName(String name)
-
-
-
Method Detail
-
getName
public String getName()
Gets the name under which this source can be accessed.
-
getSourceNodeId
public String getSourceNodeId()
Gets the identifier of the source node.- Returns:
- the identifier of the source node
-
getSourceNode
public Node getSourceNode()
Returns theNode
instance associatied with thisNodeSource
.
-
setName
public void setName(String name)
-
-