org.geotools.graph.util
Class PathFinder

java.lang.Object
  extended byorg.geotools.graph.util.PathFinder
All Implemented Interfaces:
GraphVisitor

public class PathFinder
extends java.lang.Object
implements GraphVisitor


Constructor Summary
PathFinder(Graph graph, GraphComponent source, DijkstraTraversal.CostFunction cf)
           
 
Method Summary
 void calculate()
           
 double getCost(GraphComponent element)
           
 Path getPath(GraphComponent element)
           
 int visit(GraphComponent element)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathFinder

public PathFinder(Graph graph,
                  GraphComponent source,
                  DijkstraTraversal.CostFunction cf)
Method Detail

calculate

public void calculate()

getPath

public Path getPath(GraphComponent element)

getCost

public double getCost(GraphComponent element)

visit

public int visit(GraphComponent element)
Specified by:
visit in interface GraphVisitor