|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface implemented by float precision floating point variables. The domain associated with this type of variable that be modified unlike CspFloatExpr objects.
| Method Summary | |
float |
getMax()
Returns the maximum value of this variable's domain |
float |
getMin()
Returns the minimum value of this variable's domain |
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 |
boolean |
isInDomain(float val)
Returns true if the specified value is in this variable's domain |
void |
removeAll(FloatSet set)
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 |
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 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, getSize, isBound |
| Method Detail |
public float getMax()
getMax in interface CspFloatExprpublic float getMin()
getMin in interface CspFloatExprpublic boolean isInDomain(float val)
val - value to check if it is in domain
public void setMax(float val)
throws PropagationFailureException
val - value to become the domains new maximum
PropagationFailureException - If this would cause the
domain to become empty
public void setMin(float val)
throws PropagationFailureException
val - value to become the domains new minimum
PropagationFailureException - If this would cause the
domain to become empty
public void setValue(float val)
throws PropagationFailureException
val - single value to reduce this variable's domain to
PropagationFailureException - If this would cause the
domain to become empty
public void removeValue(float val)
throws PropagationFailureException
val - value to remove from this variable's domain
PropagationFailureException - If this would cause the
domain to become empty
public void removeAll(FloatSet set)
throws PropagationFailureException
set - set of values to remove from the domain
PropagationFailureException - If this would cause the
domain to become empty
public void setRange(float start,
float end)
throws PropagationFailureException
start - value to set as this variable's domain minimumend - value to set as this variable's domain maximum
PropagationFailureException - If this would cause the
domain to become empty
public void removeRange(float start,
float end)
throws PropagationFailureException
start - minimum value of range of values being removedend - maximum value of range of values being removed
PropagationFailureException - If this would cause the
domain to become emptypublic float getNextHigher(float val)
val - current value
public float getNextLower(float val)
val - current value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||