|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjopt.csp.util.DoubleSet
Base class for double sets
Constructor Summary | |
DoubleSet()
|
Method Summary | |
abstract void |
add(double val)
Adds a value to set |
abstract void |
add(double start,
double end)
Adds a range of values to set |
void |
addAll(NumSet set)
Adds all values to set |
abstract void |
clear()
Removes all values from the set |
abstract java.lang.Object |
clone()
Creates a duplicate of this set |
abstract boolean |
contains(double val)
Returns true if value is contained in set |
abstract double |
getMax()
Returns maximum value for set |
abstract double |
getMin()
Returns minimum value for set |
abstract double |
getNextHigher(double val)
Returns the next higher value in the domain or current value if none exists |
abstract double |
getNextLower(double val)
Returns the next lower value in the domain or current value if none exists |
abstract void |
remove(double val)
Removes a value from the set |
abstract void |
remove(double start,
double end)
Removes a range of values from the set |
void |
removeAll(NumSet set)
Removes all values in a given set |
abstract void |
removeEndingAt(double val)
Removes all values below and including given value |
abstract void |
removeEndingBefore(double val)
Removes all values below given value |
abstract void |
removeStartingAfter(double val)
Removes all values above given value |
abstract void |
removeStartingFrom(double val)
Removes all values above and including given value |
void |
retainAll(NumSet set)
Retains only given values in a given set |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jopt.csp.util.NumSet |
size, values |
Constructor Detail |
public DoubleSet()
Method Detail |
public abstract void clear()
clear
in interface NumSet
public abstract double getMin()
public abstract double getMax()
public abstract boolean contains(double val)
public abstract void add(double val)
public abstract void add(double start, double end)
public final void addAll(NumSet set)
addAll
in interface NumSet
public abstract void remove(double val)
public abstract void remove(double start, double end)
public abstract void removeStartingAfter(double val)
public abstract void removeStartingFrom(double val)
public abstract void removeEndingBefore(double val)
public abstract void removeEndingAt(double val)
public final void removeAll(NumSet set)
removeAll
in interface NumSet
public final void retainAll(NumSet set)
retainAll
in interface NumSet
public abstract double getNextHigher(double val)
public abstract double getNextLower(double val)
public abstract java.lang.Object clone()
clone
in interface NumSet
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |