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

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

public class CostSearch.ComparableEdge
extends java.lang.Object
implements Edge, java.lang.Comparable

Description of the Class


Field Summary
private  double cost
           
private  Edge e
           
 
Constructor Summary
CostSearch.ComparableEdge(Edge e, double cost)
          Constructor for the ComparableEdge object
 
Method Summary
 int compareTo(java.lang.Object o)
          Description of the Method
 double getCost()
          Gets the cost attribute of the ComparableEdge object
 Edge getEdge()
          Gets the edge attribute of the ComparableEdge object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

e

private Edge e

cost

private double cost
Constructor Detail

CostSearch.ComparableEdge

public CostSearch.ComparableEdge(Edge e,
                                 double cost)
Constructor for the ComparableEdge object

Parameters:
e -
cost -
Method Detail

getEdge

public Edge getEdge()
Gets the edge attribute of the ComparableEdge object


getCost

public double getCost()
Gets the cost attribute of the ComparableEdge object


compareTo

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

Specified by:
compareTo in interface java.lang.Comparable