|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface implemented by double precision floating point numeric expressions. The domain of this type of object is computed and direct changes to it will have no effect.
Method Summary | |
CspDoubleExpr |
add(CspDoubleCast 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 |
CspConstraint |
between(double min,
boolean minExclusive,
double max,
boolean maxExclusive)
Returns a constraint restricting this expression to be between a min and max. |
CspConstraint |
between(double min,
double max)
Returns a constraint restricting this expression to be between or equal min and max. |
CspDoubleExpr |
divide(CspDoubleCast 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 |
CspConstraint |
eq(CspGenericDoubleConstant val)
Returns constraint restricting this expression to a value |
CspConstraint |
eq(double val)
Returns constraint restricting this expression to a value |
CspConstraint |
geq(CspGenericDoubleConstant val)
Returns constraint restricting this expression to values above and including a given minimum |
CspConstraint |
geq(double val)
Returns constraint restricting this expression to values above and including a given minimum |
double |
getMax()
Returns maximum value of expression |
double |
getMin()
Returns minimal value of expression |
double |
getPrecision()
Returns precision associated with this expression |
CspConstraint |
leq(CspGenericDoubleConstant val)
Returns constraint restricting this expression to values below and including a given maximum |
CspConstraint |
leq(double val)
Returns constraint restricting this expression to values below and including a given maximum |
CspDoubleExpr |
multiply(CspDoubleCast 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 |
CspConstraint |
notBetween(double min,
boolean minExclusive,
double max,
boolean maxExclusive)
Returns a constraint restricting this expression to not fall within a given range from a min to max value |
CspConstraint |
notBetween(double min,
double 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(CspDoubleCast 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 |
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 double getMin()
public double getMax()
public CspDoubleExpr add(double d)
d
- value added to this for creation of
public CspDoubleExpr add(CspDoubleCast expr)
expr
- double expression to be added to this
public CspDoubleExpr subtract(double d)
d
- double value to be subtracted from this
public CspDoubleExpr subtract(CspDoubleCast expr)
expr
- double expression to be subtracted from this
public CspDoubleExpr multiply(double d)
d
- double to be multiplied by this
public CspDoubleExpr multiply(CspDoubleCast expr)
expr
- double expression to be multiplied by this
public CspDoubleExpr divide(double d)
d
- double value to divide this by
public CspDoubleExpr divide(CspDoubleCast expr)
expr
- double expression to divide this by
public CspConstraint eq(double val)
val
- value to constrain this expression to
public CspConstraint leq(double val)
val
- value to constrain this expression to be less than or equal to
public CspConstraint geq(double val)
val
- value to constrain this expression to be greater than or equal to
public CspConstraint eq(CspGenericDoubleConstant val)
val
- generic constants to constrain this expression to
public CspConstraint leq(CspGenericDoubleConstant val)
val
- generic constants to constrain this expression to less than or equal to
public CspConstraint geq(CspGenericDoubleConstant val)
val
- generic constants to constrain this expression to greater than or equal to
public CspConstraint between(double min, boolean minExclusive, double 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(double min, double max)
min
- value that this expression must be greater thanmax
- value that this expression must be less than
public CspConstraint notBetween(double min, boolean minExclusive, double 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(double min, double 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 level of precision to associate with this expressionpublic double getPrecision()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |