org.geotools.graph.build.basic
Class BasicDirectedGraphBuilder

java.lang.Object
  extended byorg.geotools.graph.build.basic.BasicGraphBuilder
      extended byorg.geotools.graph.build.basic.BasicDirectedGraphBuilder
All Implemented Interfaces:
GraphBuilder
Direct Known Subclasses:
BasicDirectedLineGraphBuilder, OptDirectedGraphBuilder

public class BasicDirectedGraphBuilder
extends BasicGraphBuilder

An implementation of GraphBuilder used to build directed graphs.

Author:
Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
See Also:
DirectedGraph

Constructor Summary
BasicDirectedGraphBuilder()
           
 
Method Summary
 void addEdge(Edge edge)
          Adds a directed edge to the graph.
 Edge buildEdge(Node nodeA, Node nodeB)
          Builds a directed edge.
protected  Graph buildGraph()
          Creates a directed graph object.
 Node buildNode()
          Builds a directed node.
 
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

BasicDirectedGraphBuilder

public BasicDirectedGraphBuilder()
Method Detail

buildNode

public Node buildNode()
Builds a directed node.

Specified by:
buildNode in interface GraphBuilder
Overrides:
buildNode in class BasicGraphBuilder
See Also:
DirectedNode, GraphBuilder.buildNode()

buildEdge

public Edge buildEdge(Node nodeA,
                      Node nodeB)
Builds a directed edge.

Specified by:
buildEdge in interface GraphBuilder
Overrides:
buildEdge in class BasicGraphBuilder
See Also:
DirectedEdge, GraphBuilder#buildEdge()

addEdge

public void addEdge(Edge edge)
Adds a directed edge to the graph.

Specified by:
addEdge in interface GraphBuilder
Overrides:
addEdge in class BasicGraphBuilder
See Also:
DirectedEdge, GraphBuilder.addEdge(Edge)

buildGraph

protected Graph buildGraph()
Creates a directed graph object.

Overrides:
buildGraph in class BasicGraphBuilder
Returns:
A Graph object.


Copyright © GeoTools. All Rights Reserved.