|
|||||||||||
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.BaseLongDomain
Base class for long domains
Method Summary | |
void |
dump()
|
long |
getMax()
Returns maximum value of domain |
long |
getMin()
Returns minimum value of domain |
long |
getNextHigher(long val)
Returns the next higher value in the domain or current value if none exists |
long |
getNextLower(long val)
Returns the next lower value in the domain or current value if none exists |
boolean |
isBound()
Returns true if domain is bound to a value |
boolean |
isInDomain(long 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(long start,
long end)
Attempts to reduce domain by removing a range of values |
void |
removeValue(long 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(long val)
Attempts to reduce domain to a maximum value. |
void |
setMin(long val)
Attempts to reduce domain to a minimum value. |
void |
setRange(long start,
long end)
Attempts to reduce domain to within a range of values |
void |
setValue(long 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 long getMax()
getMax
in interface LongDomain
public long getMin()
getMin
in interface LongDomain
public boolean isBound()
isBound
in interface Domain
public boolean isInDomain(long val)
isInDomain
in interface LongDomain
public void setMax(long val) throws jopt.csp.variable.PropagationFailureException
setMax
in interface LongDomain
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setMin(long val) throws jopt.csp.variable.PropagationFailureException
setMin
in interface LongDomain
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setValue(long val) throws jopt.csp.variable.PropagationFailureException
setValue
in interface LongDomain
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeValue(long val) throws jopt.csp.variable.PropagationFailureException
removeValue
in interface LongDomain
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setRange(long start, long end) throws jopt.csp.variable.PropagationFailureException
setRange
in interface LongDomain
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeRange(long start, long end) throws jopt.csp.variable.PropagationFailureException
removeRange
in interface LongDomain
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 long getNextHigher(long val)
getNextHigher
in interface LongDomain
public long getNextLower(long val)
getNextLower
in interface LongDomain
public void dump()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |