|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface implemented by float precision floating point numeric expressions. The domain of this type of object is computed and changes to it will have no effect.
Method Summary | |
CspDoubleExpr |
add(CspDoubleExpr expr)
Returns an expression representing the sum of this expression with another expression |
CspFloatExpr |
add(CspFloatCast expr)
Returns an expression representing the sum of this expression with another expression |
CspDoubleExpr |
add(double d)
Returns an expression representing the sum of this expression with a static value |
CspFloatExpr |
add(float f)
Returns an expression representing the sum of this expression with a static value |
CspConstraint |
between(float min,
boolean minExclusive,
float max,
boolean maxExclusive)
Returns a constraint restricting this expression to be between a min and max. |
CspConstraint |
between(float min,
float max)
Returns a constraint restricting this expression to be between or equal min and max. |
CspDoubleExpr |
divide(CspDoubleExpr expr)
Returns an expression representing the quotient of this expression with another expression |
CspFloatExpr |
divide(CspFloatCast expr)
Returns an expression representing the quotient of this expression with another expression |
CspDoubleExpr |
divide(double d)
Returns an expression representing the quotient of this expression with a static value |
CspFloatExpr |
divide(float f)
Returns an expression representing the quotient of this expression with a static value |
CspConstraint |
eq(CspGenericFloatConstant val)
Returns constraint restricting this expression to a value |
CspConstraint |
eq(float val)
Returns constraint restricting this expression to a value |
CspConstraint |
geq(CspGenericFloatConstant val)
Returns constraint restricting this expression to values above and including a given minimum |
CspConstraint |
geq(float val)
Returns constraint restricting this expression to values above and including a given minimum |
float |
getMax()
Returns maximum value of expression |
float |
getMin()
Returns minimal value of expression |
double |
getPrecision()
Returns precision associated with this expression |
CspConstraint |
leq(CspGenericFloatConstant val)
Returns constraint restricting this expression to values below and including a given maximum |
CspConstraint |
leq(float val)
Returns constraint restricting this expression to values below and including a given maximum |
CspDoubleExpr |
multiply(CspDoubleExpr expr)
Returns an expression representing the product of this expression with another expression |
CspFloatExpr |
multiply(CspFloatCast expr)
Returns an expression representing the product of this expression with another expression |
CspDoubleExpr |
multiply(double d)
Returns an expression representing the product of this expression with a static value |
CspFloatExpr |
multiply(float f)
Returns an expression representing the product of this expression with a static value |
CspConstraint |
notBetween(float min,
boolean minExclusive,
float max,
boolean maxExclusive)
Returns a constraint restricting this expression to not fall within a given range from a min to max value |
CspConstraint |
notBetween(float min,
float max)
Returns a constraint restricting this expression to not fall within a given range greater than or equal to a min value up to less than or equal a max value |
void |
setPrecision(double p)
Sets precision associated with this expression |
CspDoubleExpr |
subtract(CspDoubleExpr expr)
Returns an expression representing the difference of this expression with another expression |
CspFloatExpr |
subtract(CspFloatCast expr)
Returns an expression representing the difference of this expression with another expression |
CspDoubleExpr |
subtract(double d)
Returns an expression representing the difference of this expression with a static value |
CspFloatExpr |
subtract(float f)
Returns an expression representing the difference of this expression with a static value |
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 |
Method Detail |
public float getMin()
public float getMax()
public CspFloatExpr add(float f)
f
- value to add to this
public CspDoubleExpr add(double d)
d
- double value to add to this
public CspFloatExpr add(CspFloatCast expr)
expr
- expression to add to this
public CspDoubleExpr add(CspDoubleExpr expr)
expr
- double expression to add to this
public CspFloatExpr subtract(float f)
f
- float to subract from this
public CspDoubleExpr subtract(double d)
d
- double to subract from this
public CspFloatExpr subtract(CspFloatCast expr)
expr
- float expression to subract from this
public CspDoubleExpr subtract(CspDoubleExpr expr)
expr
- double expression to subract from this
public CspFloatExpr multiply(float f)
f
- float to multiply by this
public CspDoubleExpr multiply(double d)
d
- double to multiply by this
public CspFloatExpr multiply(CspFloatCast expr)
expr
- float expression to multiply by this
public CspDoubleExpr multiply(CspDoubleExpr expr)
expr
- double expression to multiply by this
public CspFloatExpr divide(float f)
f
- float value to divide by this
public CspDoubleExpr divide(double d)
d
- double to divide by this
public CspFloatExpr divide(CspFloatCast expr)
expr
- float expression to divide by this
public CspDoubleExpr divide(CspDoubleExpr expr)
expr
- double expression to divide by this
public CspConstraint eq(float val)
val
- float to constrain the domain to
public CspConstraint leq(float val)
val
- float to constrain the domain to be less than or equal to
public CspConstraint geq(float val)
val
- float to constrain the domain to be greater than or equal to
public CspConstraint eq(CspGenericFloatConstant val)
val
- generic float to constrain the domain to
public CspConstraint leq(CspGenericFloatConstant val)
val
- generic float to constrain the domain to be less than or equal to
public CspConstraint geq(CspGenericFloatConstant val)
val
- generic float to constrain the domain to be greater than or equal to
public CspConstraint between(float min, boolean minExclusive, float max, boolean maxExclusive)
min
- value that this expression must be greater thanminExclusive
- true if start of range does not include minimum valuemax
- value that this expression must be less thanmaxExclusive
- true if end of range does not include maximum value
public CspConstraint between(float min, float max)
min
- value that this expression must be greater thanmax
- value that this expression must be less than
public CspConstraint notBetween(float min, boolean minExclusive, float max, boolean maxExclusive)
min
- start of values that this expression may not containminExclusive
- true if start of range does not include minimum valuemax
- start of values that this expression may not containmaxExclusive
- true if end of range does not include maximum value
public CspConstraint notBetween(float min, float max)
min
- start of values that this expression may not containmax
- start of values that this expression may not contain
public void setPrecision(double p)
p
- double representing the precision associated with this expressionpublic double getPrecision()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |