choco.cp.solver.constraints.global.geost.dataStructures
Class HeapKey
java.lang.Object
choco.cp.solver.constraints.global.geost.dataStructures.HeapKey
- All Implemented Interfaces:
- Heapable
public final class HeapKey
- extends Object
- implements Heapable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HeapKey
public HeapKey(Point p,
int d,
int dim,
InternalConstraint ictr)
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.