public class GraphContext extends Object
Graph,
GraphProcessor| Constructor and Description |
|---|
GraphContext(Graph graph)
Creates a GraphContext for the given
graph and a logger. |
GraphContext(Graph graph,
Operator graphOp)
Creates a GraphContext for the given
graph and a logger. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes this
GraphContext. |
Graph |
getGraph()
Gets the
Graph of this context. |
Deque<NodeContext> |
getInitNodeContextDeque()
Gets the
NodeContexts in the reverse order as they were initialized. |
Logger |
getLogger()
Gets the @link Logger} of this context.
|
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. nodes that are not input to other nodes.
|
void |
setPreferredTileSize(Dimension preferredTileSize)
Sets the preferred tile size.
|
public GraphContext(Graph graph) throws GraphException
graph and a logger.graph - the Graph to create the context forGraphException - if the graph context could not be createdpublic GraphContext(Graph graph, Operator graphOp) throws GraphException
graph and a logger.graph - the Graph to create the context forGraphException - if the graph context could not be createdpublic void dispose()
GraphContext.public Logger getLogger()
public void setPreferredTileSize(Dimension preferredTileSize)
preferredTileSize - the preferred tile sizepublic Product[] getOutputProducts()
public Deque<NodeContext> getInitNodeContextDeque()
NodeContexts in the reverse order as they were initialized.NodeContextspublic NodeContext getNodeContext(Node node)
NodeContext of the given node.node - the node to get the context forNodeContext of the given node or
null if it's not contained in this contextCopyright © 2014–2017 European Space Agency (ESA). All rights reserved.