org.graffiti.plugins.algorithms.HighDimEmbed
Class PQEntry

java.lang.Object
  extended by org.graffiti.plugins.algorithms.HighDimEmbed.PQEntry
All Implemented Interfaces:
Comparable<PQEntry>

public class PQEntry
extends Object
implements Comparable<PQEntry>

An entry in the priority queue.

Version:
$Revision: 5766 $

Constructor Summary
PQEntry(Edge e, double distance)
          Constructs a new priority queue entry.
 
Method Summary
 int compareTo(PQEntry o)
           
 double getDistance()
          Returns the distance.
 Edge getEdge()
          Returns the e.
 void setDistance(double distance)
          Sets the distance.
 void setEdge(Edge e)
          Sets the e.
 String toString()
          Returns a human readable string of this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PQEntry

public PQEntry(Edge e,
               double distance)
Constructs a new priority queue entry.

Parameters:
e - the associated edge.
distance - the associated cost.
Method Detail

setDistance

public void setDistance(double distance)
Sets the distance.

Parameters:
distance - The distance to set

getDistance

public double getDistance()
Returns the distance.

Returns:
double

setEdge

public void setEdge(Edge e)
Sets the e.

Parameters:
e - The e to set

getEdge

public Edge getEdge()
Returns the e.

Returns:
Edge

compareTo

public int compareTo(PQEntry o)
Specified by:
compareTo in interface Comparable<PQEntry>
See Also:
Comparable.compareTo(Object)

toString

public String toString()
Returns a human readable string of this object.

Overrides:
toString in class Object
Returns:
a human readable string of this object.


Generated at 2012-05-30 11:01:25 PM CEST