Package org.esa.snap.core.gpf.graph
Class GraphContext
java.lang.Object
org.esa.snap.core.gpf.graph.GraphContext
- Since:
- 4.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGraphContext(Graph graph) Creates a GraphContext for the givengraphand alogger.GraphContext(Graph graph, boolean init) GraphContext(Graph graph, Operator graphOp) Creates a GraphContext for the givengraphand alogger.GraphContext(Graph graph, Operator graphOp, boolean init) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposes thisGraphContext.getGraph()Gets theGraphof this context.Gets theNodeContexts in the reverse order as they were initialized.Gets the @link Logger} of this context.getNodeContext(Node node) Gets theNodeContextof the given node.Product[]Returns an array containing the output products generated by this graph's output nodes, i.e.voidvoidsetPreferredTileSize(Dimension preferredTileSize) Sets the preferred tile size.
-
Constructor Details
-
GraphContext
Creates a GraphContext for the givengraphand alogger.- Parameters:
graph- theGraphto create the context for- Throws:
GraphException- if the graph context could not be created
-
GraphContext
- Throws:
GraphException
-
GraphContext
- Throws:
GraphException
-
GraphContext
Creates a GraphContext for the givengraphand alogger.- Parameters:
graph- theGraphto create the context for- Throws:
GraphException- if the graph context could not be created
-
-
Method Details
-
init
- Throws:
GraphException
-
dispose
public void dispose()Disposes thisGraphContext. -
getGraph
Gets theGraphof this context.- Returns:
- the
Graph
-
getLogger
Gets the @link Logger} of this context.- Returns:
- the logger
-
setPreferredTileSize
Sets the preferred tile size.- Parameters:
preferredTileSize- the preferred tile size
-
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
Gets theNodeContexts in the reverse order as they were initialized.- Returns:
- a deque of
NodeContexts
-
getNodeContext
Gets theNodeContextof the given node.- Parameters:
node- the node to get the context for- Returns:
- the
NodeContextof the givennodeornullif it's not contained in this context
-