org.geotools.graph.build.opt
Class OptGraphBuilder

java.lang.Object
  extended byorg.geotools.graph.build.basic.BasicGraphBuilder
      extended byorg.geotools.graph.build.opt.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

Constructor Summary
OptGraphBuilder()
           
 
Method Summary
 Edge buildEdge(Node nodeA, Node nodeB)
          Creates an optimized edge.
 Node buildNode()
          Creates an optimized node.
 
Methods inherited from class org.geotools.graph.build.basic.BasicGraphBuilder
addEdge, addNode, buildGraph, clone, getEdges, getGraph, getNodes, importGraph, removeEdge, removeEdges, removeNode, removeNodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptGraphBuilder

public OptGraphBuilder()
Method Detail

buildNode

public Node buildNode()
Creates an optimized node.

Specified by:
buildNode in interface GraphBuilder
Overrides:
buildNode in class BasicGraphBuilder
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
See Also:
GraphBuilder#buildEdge(), OptEdge


Copyright © GeoTools. All Rights Reserved.