edu.ucla.structure
Class Heap.HeapElement

Object
  extended by Heap.HeapElement
Enclosing class:
Heap

public static final class Heap.HeapElement
extends Object

Helper class for implementing an object priority pair.


Method Summary
 Object element()
          returns the object the HeapElement contains.
 boolean equals(Object o)
           
 int hashCode()
          Returns the hashCode of the object it contains.
 double score()
          returns the priority associated with the element.
 String toString()
           
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

hashCode

public int hashCode()
Returns the hashCode of the object it contains.

Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

element

public Object element()
returns the object the HeapElement contains.


score

public double score()
returns the priority associated with the element.


toString

public String toString()
Overrides:
toString in class Object


Copyright 2010 UCLA Automated Reasoning Group