|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjopt.csp.spi.arcalgorithm.variable.VariableChangeBase
jopt.csp.spi.arcalgorithm.variable.NumExprBase
jopt.csp.spi.arcalgorithm.variable.FloatExpr
jopt.csp.spi.arcalgorithm.variable.FloatVariable
Constructor Summary | |
FloatVariable(java.lang.String name,
BaseFloatDomain domain)
Constructor |
|
FloatVariable(java.lang.String name,
FloatCast expr)
Constructor |
|
FloatVariable(java.lang.String name,
float min,
float max)
Constructor |
|
FloatVariable(java.lang.String name,
FloatVariable var)
Constructor |
Method Summary | |
void |
clearDelta()
Clears the delta set for this variable's domain |
java.lang.Object |
clone()
Clones this variable |
float |
getNextHigher(float val)
Returns the next higher value in this variable's domain or current value if none exists |
float |
getNextLower(float val)
Returns the next lower value in this variable's domain or current value if none exists |
int |
getSize()
Returns the size of this variable's domain |
java.lang.Object |
getState()
Stores appropriate data for future restoration. |
boolean |
isInDomain(float val)
Returns true if value is in this variable's domain |
void |
removeAll(jopt.csp.util.FloatSet vals)
Attempts to remove a set of values from this variable's domain |
void |
removeDomainRange(java.lang.Number start,
java.lang.Number end)
Attempts to reduce this variable's domain by removing a range of values |
void |
removeDomainValue(java.lang.Number val)
Attempts to remove a single value from this variable's domain |
void |
removeDomainValues(jopt.csp.util.NumSet vals)
Attempts to reduce this variable's domain by removing a set of values |
void |
removeRange(float start,
float end)
Attempts to reduce this variable's domain by removing a range of values |
void |
removeValue(float val)
Attempts to remove a single value from this variable's domain |
void |
restoreState(java.lang.Object state)
Restores variable information from stored data. |
void |
setDomainMax(java.lang.Number val)
Attempts to reduce this variable's domain to be less than the specified maximum value. |
void |
setDomainMin(java.lang.Number val)
Attempts to reduce this variable's domain to be less than the specified maximum value. |
void |
setDomainRange(java.lang.Number start,
java.lang.Number end)
Attempts to reduce this variable's domain to within a range of values |
void |
setDomainValue(java.lang.Number val)
Attempts to reduce this variable's domain to a single value. |
void |
setDomainValues(jopt.csp.util.NumSet s)
Attempts to reduce this variable's domain by restricting it to a set of values |
void |
setMax(float val)
Attempts to reduce this variable's domain to be less than the specified maximum value. |
void |
setMin(float val)
Attempts to reduce this variable's domain to be greater than the specified minimum value. |
void |
setRange(float start,
float end)
Attempts to reduce this variable's domain to within a range of values |
void |
setValue(float val)
Attempts to reduce this variable's domain to a single value. |
Methods inherited from class jopt.csp.spi.arcalgorithm.variable.FloatExpr |
add, add, add, add, between, between, divide, divide, divide, divide, eq, eq, geq, geq, getDoubleDomain, getFloatDomain, getMax, getMin, getNextHigher, getNextLower, getNode, getNumberType, getNumMax, getNumMin, getPrecision, isInDomain, leq, leq, multiply, multiply, multiply, multiply, multiply, notBetween, notBetween, setPrecision, subtract, subtract, subtract, subtract |
Methods inherited from class jopt.csp.spi.arcalgorithm.variable.NumExprBase |
addVariableChangeListener, between, between, between, between, eq, equals, geq, getBooleanSourceArcs, getDomain, getName, getNodeCollection, gt, hashCode, isBound, leq, lt, neq, notBetween, notBetween, notBetween, notBetween, removeVariableChangeListener, setName, toString, updateGraph |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jopt.csp.variable.CspFloatVariable |
getMax, getMin |
Methods inherited from interface jopt.csp.variable.CspFloatExpr |
add, add, add, add, between, between, divide, divide, divide, divide, eq, eq, geq, geq, getPrecision, leq, leq, multiply, multiply, multiply, multiply, notBetween, notBetween, setPrecision, subtract, subtract, subtract, subtract |
Methods inherited from interface jopt.csp.variable.CspNumExpr |
between, between, between, between, eq, geq, getName, gt, isBound, leq, lt, neq, notBetween, notBetween, notBetween, notBetween, setName |
Methods inherited from interface jopt.csp.variable.CspVariable |
getName, isBound |
Methods inherited from interface jopt.csp.spi.arcalgorithm.variable.Variable |
updateGraph |
Methods inherited from interface jopt.csp.spi.util.Storable |
getName |
Methods inherited from interface jopt.csp.spi.arcalgorithm.constraint.num.NumExpr |
getBooleanSourceArcs, getName, getNodeCollection, isBound, updateGraph |
Constructor Detail |
public FloatVariable(java.lang.String name, BaseFloatDomain domain)
public FloatVariable(java.lang.String name, float min, float max)
public FloatVariable(java.lang.String name, FloatVariable var)
public FloatVariable(java.lang.String name, FloatCast expr)
Method Detail |
public int getSize()
getSize
in interface jopt.csp.variable.CspVariable
public boolean isInDomain(float val)
isInDomain
in interface jopt.csp.variable.CspFloatVariable
public void setMax(float val) throws jopt.csp.variable.PropagationFailureException
setMax
in interface jopt.csp.variable.CspFloatVariable
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setMin(float val) throws jopt.csp.variable.PropagationFailureException
setMin
in interface jopt.csp.variable.CspFloatVariable
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setDomainMax(java.lang.Number val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setDomainMin(java.lang.Number val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setValue(float val) throws jopt.csp.variable.PropagationFailureException
setValue
in interface jopt.csp.variable.CspFloatVariable
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setDomainValue(java.lang.Number val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setDomainValues(jopt.csp.util.NumSet s) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeValue(float val) throws jopt.csp.variable.PropagationFailureException
removeValue
in interface jopt.csp.variable.CspFloatVariable
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeAll(jopt.csp.util.FloatSet vals) throws jopt.csp.variable.PropagationFailureException
removeAll
in interface jopt.csp.variable.CspFloatVariable
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeDomainValue(java.lang.Number val) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeDomainValues(jopt.csp.util.NumSet vals) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setRange(float start, float end) throws jopt.csp.variable.PropagationFailureException
setRange
in interface jopt.csp.variable.CspFloatVariable
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeRange(float start, float end) throws jopt.csp.variable.PropagationFailureException
removeRange
in interface jopt.csp.variable.CspFloatVariable
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void setDomainRange(java.lang.Number start, java.lang.Number end) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic void removeDomainRange(java.lang.Number start, java.lang.Number end) throws jopt.csp.variable.PropagationFailureException
jopt.csp.variable.PropagationFailureException
- If domain is emptypublic float getNextHigher(float val)
getNextHigher
in interface jopt.csp.variable.CspFloatVariable
public float getNextLower(float val)
getNextLower
in interface jopt.csp.variable.CspFloatVariable
public void clearDelta()
public java.lang.Object getState()
getState
in interface Storable
public void restoreState(java.lang.Object state)
restoreState
in interface Storable
public java.lang.Object clone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |