|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.spi.arcalgorithm.domain.AbstractDomain jopt.csp.spi.arcalgorithm.domain.BaseNumDomain jopt.csp.spi.arcalgorithm.domain.BaseDoubleDomain
Base class for double domains
Method Summary | |
void |
dump()
|
double |
getMax()
Returns maximum value of domain |
double |
getMin()
Returns minimum value of domain |
double |
getNextHigher(double val)
Returns the next higher value in the domain or current value if none exists |
double |
getNextLower(double val)
Returns the next lower value in the domain or current value if none exists |
double |
getPrecision()
Returns precision of set |
boolean |
isBound()
Returns true if domain is bound to a value |
boolean |
isInDomain(double val)
Returns true if value is in domain |
void |
removeDomain(jopt.csp.util.NumSet s)
Attempts to reduce a domain by removing a set of values |
void |
removeRange(double start,
double end)
Attempts to reduce domain by removing a range of values |
void |
removeValue(double val)
Attempts to remove a single value from the domain |
void |
setDomain(jopt.csp.util.NumSet s)
Attempts to reduce a domain by restricting it to a set of values |
void |
setMax(double val)
Attempts to reduce domain to a maximum value. |
void |
setMin(double val)
Attempts to reduce domain to a minimum value. |
void |
setPrecision(double precision)
Sets precision of set |
void |
setRange(double start,
double end)
Attempts to reduce domain to within a range of values |
void |
setValue(double val)
Attempts to reduce domain to a single value. |
Methods inherited from class jopt.csp.spi.arcalgorithm.domain.BaseNumDomain |
clearDelta, clone, deltaValues, getDeltaSet, getDomainState, getSize, isNestedChild, restoreDomainState, setNestedChild, toSet, toString, values |
Methods inherited from class jopt.csp.spi.arcalgorithm.domain.AbstractDomain |
addDomainChangeListener, addRangeChangeListener, addValueChangeListener, changed, removeDomainChangeListener, removeRangeChangeListener, removeValueChangeListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jopt.csp.spi.arcalgorithm.domain.NumDomain |
deltaValues, getDeltaSet, getSize, toSet, values |
Methods inherited from interface jopt.csp.spi.arcalgorithm.domain.Domain |
changed, clearDelta, clone, getDomainState, restoreDomainState |
Methods inherited from interface jopt.csp.spi.solver.ChoicePointEntryListener |
afterChoicePointPopEvent, afterChoicePointPushEvent, beforeChoicePointPopEvent, beforeChoicePointPushEvent |
Methods inherited from interface jopt.csp.spi.solver.ChoicePointDataSource |
choicePointStackSet, setChoicePointStack |
Method Detail |
public double getMax()
getMax
in interface DoubleDomain
public double getMin()
getMin
in interface DoubleDomain
public boolean isBound()
isBound
in interface Domain
public boolean isInDomain(double val)
isInDomain
in interface DoubleDomain
public void setMax(double val) throws jopt.csp.variable.PropagationFailureException
setMax
in interface DoubleDomain
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setMin(double val) throws jopt.csp.variable.PropagationFailureException
setMin
in interface DoubleDomain
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setValue(double val) throws jopt.csp.variable.PropagationFailureException
setValue
in interface DoubleDomain
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeValue(double val) throws jopt.csp.variable.PropagationFailureException
removeValue
in interface DoubleDomain
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setRange(double start, double end) throws jopt.csp.variable.PropagationFailureException
setRange
in interface DoubleDomain
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeRange(double start, double end) throws jopt.csp.variable.PropagationFailureException
removeRange
in interface DoubleDomain
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setDomain(jopt.csp.util.NumSet s) throws jopt.csp.variable.PropagationFailureException
setDomain
in interface NumDomain
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeDomain(jopt.csp.util.NumSet s) throws jopt.csp.variable.PropagationFailureException
removeDomain
in interface NumDomain
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic double getNextHigher(double val)
getNextHigher
in interface DoubleDomain
public double getNextLower(double val)
getNextLower
in interface DoubleDomain
public final void setPrecision(double precision)
setPrecision
in interface DoubleDomain
public final double getPrecision()
getPrecision
in interface DoubleDomain
public void dump()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |