org.geotools.graph.build.opt
Class OptDirectedGraphBuilder

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

Constructor Summary
OptDirectedGraphBuilder()
           
 
Method Summary
 Edge buildEdge(Node nodeA, Node nodeB)
          Creates an optimized directed edge.
 Node buildNode()
          Creates an optimized directed node.
 
Methods inherited from class org.geotools.graph.build.basic.BasicDirectedGraphBuilder
addEdge, buildGraph
 
Methods inherited from class org.geotools.graph.build.basic.BasicGraphBuilder
addNode, 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

OptDirectedGraphBuilder

public OptDirectedGraphBuilder()
Method Detail

buildNode

public Node buildNode()
Creates an optimized directed node.

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


Copyright © GeoTools. All Rights Reserved.