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