|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface implemented by long domains
Method Summary | |
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 |
isInDomain(long val)
Returns true if value is in domain |
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 |
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 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 long getMax()
public long getMin()
public boolean isInDomain(long val)
public void setMax(long val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setMin(long val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setValue(long val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeValue(long val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setRange(long start, long end) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeRange(long start, long end) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic long getNextHigher(long val)
public long getNextLower(long val)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |