org.geotools.graph.build.opt
Class OptGraphBuilder
Object
BasicGraphBuilder
OptGraphBuilder
- All Implemented Interfaces:
- GraphBuilder
- Direct Known Subclasses:
- OptLineGraphBuilder
public class OptGraphBuilder
- extends BasicGraphBuilder
An implementation of GraphBuilder that builds optimized graph components.
- Author:
- Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
- See Also:
OptNode,
OptEdge
| Methods inherited from class BasicGraphBuilder |
addEdge, addNode, buildGraph, clone, getEdges, getGraph, getNodes, importGraph, removeEdge, removeEdges, removeNode, removeNodes |
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptGraphBuilder
public OptGraphBuilder()
buildNode
public Node buildNode()
- Creates an optimized node.
- Specified by:
buildNode in interface GraphBuilder- Overrides:
buildNode in class BasicGraphBuilder
- Returns:
- Node The newly built node.
- See Also:
GraphBuilder.buildNode(),
OptNode
buildEdge
public Edge buildEdge(Node nodeA,
Node nodeB)
- Creates an optimized edge.
- Specified by:
buildEdge in interface GraphBuilder- Overrides:
buildEdge in class BasicGraphBuilder
- Parameters:
nodeA - Adjacent node to edge.nodeB - Adjacent node to edge.
- Returns:
- Edge the newly built Edge.
- See Also:
GraphBuilder#buildEdge(),
OptEdge
Copyright © 1996-2013 Geotools. All Rights Reserved.