choco.cp.solver.constraints.global.geost.dataStructures
Class HeapKey

java.lang.Object
  extended by choco.cp.solver.constraints.global.geost.dataStructures.HeapKey
All Implemented Interfaces:
Heapable

public final class HeapKey
extends Object
implements Heapable


Constructor Summary
HeapKey(Point p, int d, int dim, InternalConstraint ictr)
           
 
Method Summary
 boolean equalTo(Object other)
          Determines if this key is equal to the other key.
 int getD()
           
 InternalConstraint getIctr()
           
 Point getP()
           
 boolean greaterThan(Object other)
          Determines if this key is greater than the other key.
 boolean lessThan(Object other)
          Determines if this key is less than the other key.
 void setD(int d)
           
 void setIctr(InternalConstraint ictr)
           
 void setP(Point p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeapKey

public HeapKey(Point p,
               int d,
               int dim,
               InternalConstraint ictr)
Method Detail

getD

public int getD()

getIctr

public InternalConstraint getIctr()

getP

public Point getP()

setD

public void setD(int d)

setIctr

public void setIctr(InternalConstraint ictr)

setP

public void setP(Point p)

equalTo

public boolean equalTo(Object other)
Description copied from interface: Heapable
Determines if this key is equal to the other key. For example, to compare keys that are subclasses of Integer:
     return (intValue() == ((Integer)other).intValue());
 

Specified by:
equalTo in interface Heapable
Parameters:
other - the key to compare this key to.
Returns:
true if this key is equal to the other key

greaterThan

public boolean greaterThan(Object other)
Description copied from interface: Heapable
Determines if this key is greater than the other key. For example, to compare keys that are subclasses of Integer:
     return (intValue() > ((Integer)other).intValue());
 

Specified by:
greaterThan in interface Heapable
Parameters:
other - the key to compare this key to.
Returns:
true if this key is greater than the other key

lessThan

public boolean lessThan(Object other)
Description copied from interface: Heapable
Determines if this key is less than the other key. For example, to compare keys that are subclasses of Integer:
     return (intValue() < ((Integer)other).intValue());
 

Specified by:
lessThan in interface Heapable
Parameters:
other - the key to compare this key to.
Returns:
true if this key is less than the other key


Copyright © 2012. All Rights Reserved.