|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface implemented by integer domains
Method Summary | |
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 |
isInDomain(int val)
Returns true if value is in domain |
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 |
setMax(int val)
Attempts to reduce domain to a maximum value. |
void |
setMin(int val)
Attempts to reduce domain to 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 interface jopt.csp.spi.arcalgorithm.domain.NumDomain |
deltaValues, getDeltaSet, getSize, removeDomain, setDomain, toSet, values |
Methods inherited from interface jopt.csp.spi.arcalgorithm.domain.Domain |
changed, clearDelta, clone, getDomainState, isBound, restoreDomainState |
Method Detail |
public int getMax()
public int getMin()
public boolean isInDomain(int val)
public void setMax(int val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setMin(int val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setValue(int val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeValue(int val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setRange(int start, int end) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeRange(int start, int end) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic int getNextHigher(int val)
public int getNextLower(int val)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |