org.apache.commons.graph.search
Class CostSearch.ComparableVertex

java.lang.Object
  extended byorg.apache.commons.graph.search.CostSearch.ComparableVertex
All Implemented Interfaces:
java.lang.Comparable, Vertex
Enclosing class:
CostSearch

public class CostSearch.ComparableVertex
extends java.lang.Object
implements Vertex, java.lang.Comparable

Description of the Class


Field Summary
private  double cost
           
private  Vertex v
           
 
Constructor Summary
CostSearch.ComparableVertex(Vertex v, double cost)
          Constructor for the ComparableVertex object
 
Method Summary
 int compareTo(java.lang.Object o)
          Description of the Method
 Vertex getVertex()
          Gets the vertex attribute of the ComparableVertex object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

v

private Vertex v

cost

private double cost
Constructor Detail

CostSearch.ComparableVertex

public CostSearch.ComparableVertex(Vertex v,
                                   double cost)
Constructor for the ComparableVertex object

Parameters:
v -
cost -
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Description of the Method

Specified by:
compareTo in interface java.lang.Comparable

getVertex

public Vertex getVertex()
Gets the vertex attribute of the ComparableVertex object