org.geotools.graph.build.opt
Class OptDirectedGraphBuilder
Object
BasicGraphBuilder
BasicDirectedGraphBuilder
OptDirectedGraphBuilder
- All Implemented Interfaces:
- GraphBuilder
- Direct Known Subclasses:
- OptDirectedLineGraphBuilder
public class OptDirectedGraphBuilder
- extends BasicDirectedGraphBuilder
An implementation of GraphBuilder that builds optimized directed graph
components.
- Author:
- Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
- See Also:
OptDirectedNode
,
OptDirectedEdge
- Module:
modules/extension/graph (gt-graph.jar)
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptDirectedGraphBuilder
public OptDirectedGraphBuilder()
buildNode
public Node buildNode()
- Creates an optimized directed node.
- Specified by:
buildNode
in interface GraphBuilder
- Overrides:
buildNode
in class BasicDirectedGraphBuilder
- Returns:
- Node The newly built node.
- See Also:
GraphBuilder.buildNode()
,
OptDirectedNode
buildEdge
public Edge buildEdge(Node nodeA,
Node nodeB)
- Creates an optimized directed edge.
- Specified by:
buildEdge
in interface GraphBuilder
- Overrides:
buildEdge
in class BasicDirectedGraphBuilder
- Parameters:
nodeA
- Adjacent node to edge.nodeB
- Adjacent node to edge.
- Returns:
- Edge the newly built Edge.
- See Also:
GraphBuilder#buildEdge()
,
OptDirectedEdge
Copyright © 1996-2010 Geotools. All Rights Reserved.