|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface implemented by float domains
Method Summary | |
float |
getMax()
Returns maximum value of domain |
float |
getMin()
Returns minimum value of domain |
float |
getNextHigher(float val)
Returns the next higher value in the domain or current value if none exists |
float |
getNextLower(float val)
Returns the next lower value in the domain or current value if none exists |
float |
getPrecision()
Returns precision of set |
boolean |
isInDomain(float val)
Returns true if value is in domain |
void |
removeRange(float start,
float end)
Attempts to reduce domain by removing a range of values |
void |
removeValue(float val)
Attempts to remove a single value from the domain |
void |
setMax(float val)
Attempts to reduce domain to a maximum value. |
void |
setMin(float val)
Attempts to reduce domain to a minimum value. |
void |
setPrecision(float precision)
Sets precision of set |
void |
setRange(float start,
float end)
Attempts to reduce domain to within a range of values |
void |
setValue(float 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 float getMax()
public float getMin()
public boolean isInDomain(float val)
public void setMax(float val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setMin(float val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setValue(float val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeValue(float val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setRange(float start, float end) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeRange(float start, float end) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic float getNextHigher(float val)
public float getNextLower(float val)
public void setPrecision(float precision)
public float getPrecision()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |