org.geotools.graph.build.opt
Class OptGraphBuilder

Object
  extended by BasicGraphBuilder
      extended by 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
Module:
modules/extension/graph (gt-graph.jar)

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 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
 

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
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-2010 Geotools. All Rights Reserved.