org.esa.beam.framework.gpf.graph
Class NodeSource

java.lang.Object
  extended by org.esa.beam.framework.gpf.graph.NodeSource

public class NodeSource
extends Object

A NodeSource represents a mapping from an nodeId to a Node instance. The GraphIO uses sorces to simplify the xml deserialization. Use this class to set the sources of Nodes to a Node with the given nodeId. The GraphProcessor will resolve the nodeId to the respective Node if present.


Constructor Summary
NodeSource(String name, String sourceNodeId)
          Constructs a NodeSource.
 
Method Summary
 String getName()
          Gets the name under which this source can be accessed.
 Node getSourceNode()
          Returns the Node instance associatied with this NodeSource.
 String getSourceNodeId()
          Gets the identifier of the source node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeSource

public NodeSource(String name,
                  String sourceNodeId)
Constructs a NodeSource.

Parameters:
name - the name of the source
sourceNodeId - the identifier of the source node
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 the Node instance associatied with this NodeSource.



Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.