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

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

public class GraphContext
extends Object

The GraphContext holds the context for executing the Graph by the GraphProcessor.

Since:
4.1
Author:
Norman Fomferra, Marco Peters
See Also:
Graph, GraphProcessor

Constructor Summary
GraphContext(Graph graph)
          Creates a GraphContext for the given graph and a logger.
 
Method Summary
 void dispose()
          Disposes this GraphContext.
 Graph getGraph()
          Gets the Graph of this context.
 Deque<org.esa.beam.framework.gpf.graph.NodeContext> getInitNodeContextDeque()
          Gets the NodeContexts in the reverse order as they were initialized.
 Logger getLogger()
          Gets the @link Logger} of this context.
 org.esa.beam.framework.gpf.graph.NodeContext getNodeContext(Node node)
          Gets the NodeContext of the given node.
 Product[] getOutputProducts()
          Returns an array containing the output products generated by this graph's output nodes, i.e.
 void setPreferredTileSize(Dimension preferredTileSize)
          Sets the preferred tile size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphContext

public GraphContext(Graph graph)
             throws GraphException
Creates a GraphContext for the given graph and a logger.

Parameters:
graph - the Graph to create the context for
Throws:
GraphException - if the graph context could not be created
Method Detail

dispose

public void dispose()
Disposes this GraphContext.


getGraph

public Graph getGraph()
Gets the Graph of this context.

Returns:
the Graph

getLogger

public Logger getLogger()
Gets the @link Logger} of this context.

Returns:
the logger

setPreferredTileSize

public void setPreferredTileSize(Dimension preferredTileSize)
Sets the preferred tile size.

Parameters:
preferredTileSize - the preferred tile size

getOutputProducts

public Product[] getOutputProducts()
Returns an array containing the output products generated by this graph's output nodes, i.e. nodes that are not input to other nodes.

Returns:
an array containing the output products of this graph

getInitNodeContextDeque

public Deque<org.esa.beam.framework.gpf.graph.NodeContext> getInitNodeContextDeque()
Gets the NodeContexts in the reverse order as they were initialized.

Returns:
a deque of NodeContexts

getNodeContext

public org.esa.beam.framework.gpf.graph.NodeContext getNodeContext(Node node)
Gets the NodeContext of the given node.

Parameters:
node - the node to get the context for
Returns:
the NodeContext of the given node or null if it's not contained in this context


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