util.graph
Class Path

java.lang.Object
  |
  +--util.graph.Path

public class Path
extends Object
implements Comparable

A path of edges. Maintains cost based on all edges of a given owner only contribute one cost, not one for each edge.


Method Summary
 int compareTo(Object o)
           
 int getCost()
          Cost of the path.
 Iterator getEdges()
           
 Object getEndpoint()
          What the path leads to.
 void printOut()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getCost

public int getCost()
Cost of the path.

getEndpoint

public Object getEndpoint()
What the path leads to.

getEdges

public Iterator getEdges()

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

toString

public String toString()
Overrides:
toString in class Object

printOut

public void printOut()