|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface implemented by long integer based 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(CspFloatExpr expr)
Returns an expression representing the sum of this expression with another expression |
CspLongExpr |
add(CspLongCast 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 |
CspLongExpr |
add(long l)
Returns an expression representing the sum of this expression with a static value |
CspConstraint |
between(long min,
boolean minExclusive,
long max,
boolean maxExclusive)
Returns a constraint restricting this expression to be between a min and max. |
CspConstraint |
between(long min,
long 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(CspFloatExpr expr)
Returns an expression representing the quotient of this expression with another expression |
CspLongExpr |
divide(CspLongCast 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 |
CspLongExpr |
divide(long l)
Returns an expression representing the quotient of this expression with a static value |
CspConstraint |
eq(CspGenericLongConstant val)
Returns constraint restricting this expression to a value |
CspConstraint |
eq(long val)
Returns constraint restricting this expression to a value |
CspConstraint |
geq(CspGenericLongConstant val)
Returns constraint restricting this expression to values above and including a given minimum |
CspConstraint |
geq(long val)
Returns constraint restricting this expression to values above and including a given minimum |
long |
getMax()
Returns the maximum value of the expression |
long |
getMin()
Returns the minimal value of the expression |
CspConstraint |
gt(CspGenericLongConstant val)
Returns constraint restricting this expression to values above a given minimum |
CspConstraint |
gt(long val)
Returns constraint restricting this expression to values above a given minimum |
CspConstraint |
leq(CspGenericLongConstant val)
Returns constraint restricting this expression to values below and including a given maximum |
CspConstraint |
leq(long val)
Returns constraint restricting this expression to values below and including a given maximum |
CspConstraint |
lt(CspGenericLongConstant val)
Returns constraint restricting this expression to values below a given maximum |
CspConstraint |
lt(long val)
Returns constraint restricting this expression to values below a given maximum |
CspDoubleExpr |
multiply(CspDoubleExpr expr)
Returns an expression representing the product of this expression with another expression |
CspFloatExpr |
multiply(CspFloatExpr expr)
Returns an expression representing the product of this expression with another expression |
CspLongExpr |
multiply(CspLongCast 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 |
CspLongExpr |
multiply(long l)
Returns an expression representing the product of this expression with a static value |
CspConstraint |
neq(CspGenericLongConstant val)
Returns constraint restricting this expression to all values not equivalent to supplied value |
CspConstraint |
neq(long val)
Returns constraint restricting this expression to all values not equivalent to supplied value |
CspConstraint |
notBetween(long min,
boolean minExclusive,
long max,
boolean maxExclusive)
Returns a constraint restricting this expression to not fall within a given range from a min to max value |
CspConstraint |
notBetween(long min,
long 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 |
CspDoubleExpr |
subtract(CspDoubleExpr expr)
Returns an expression representing the difference of this expression with another expression |
CspFloatExpr |
subtract(CspFloatExpr expr)
Returns an expression representing the difference of this expression with another expression |
CspLongExpr |
subtract(CspLongCast 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 |
CspLongExpr |
subtract(long l)
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 long getMin()
public long getMax()
public CspLongExpr add(long l)
l
- value to add to this expression
public CspFloatExpr add(float f)
f
- value to add to this expression
public CspDoubleExpr add(double d)
d
- value to add to this expression
public CspLongExpr add(CspLongCast expr)
expr
- expression to add to this expression
public CspFloatExpr add(CspFloatExpr expr)
expr
- expression to add to this expression
public CspDoubleExpr add(CspDoubleExpr expr)
expr
- expression to add to this expression
public CspLongExpr subtract(long l)
l
- value to subtract from this expression
public CspFloatExpr subtract(float f)
f
- value to subtract from this expression
public CspDoubleExpr subtract(double d)
d
- value to subtract from this expression
public CspLongExpr subtract(CspLongCast expr)
expr
- expression to subtract from this expression
public CspFloatExpr subtract(CspFloatExpr expr)
expr
- expression to subtract from this expression
public CspDoubleExpr subtract(CspDoubleExpr expr)
expr
- expression to subtract from this expression
public CspLongExpr multiply(long l)
l
- value to multiply by this expression
public CspFloatExpr multiply(float f)
f
- value to multiply by this expression
public CspDoubleExpr multiply(double d)
d
- value to multiply by this expression
public CspLongExpr multiply(CspLongCast expr)
expr
- expression to multiply by this expression
public CspFloatExpr multiply(CspFloatExpr expr)
expr
- expression to multiply by this expression
public CspDoubleExpr multiply(CspDoubleExpr expr)
expr
- expression to multiply by this expression
public CspLongExpr divide(long l)
l
- value to divide this expression by
public CspFloatExpr divide(float f)
f
- value to divide this expression by
public CspDoubleExpr divide(double d)
d
- value to divide this expression by
public CspLongExpr divide(CspLongCast expr)
expr
- expression to divide this expression by
public CspFloatExpr divide(CspFloatExpr expr)
expr
- expression to divide this expression by
public CspDoubleExpr divide(CspDoubleExpr expr)
expr
- expression to divide this expression by
public CspConstraint eq(long val)
val
- value to constrain this expression to
public CspConstraint lt(long val)
val
- value to constrain this expression to
public CspConstraint leq(long val)
val
- value to constrain this expression to
public CspConstraint gt(long val)
val
- value to constrain this expression to
public CspConstraint geq(long val)
val
- value to constrain this expression to
public CspConstraint neq(long val)
val
- value to constrain this expression to
public CspConstraint eq(CspGenericLongConstant val)
val
- generic constrant to constrain this expression to
public CspConstraint lt(CspGenericLongConstant val)
val
- generic constrant to constrain this expression to
public CspConstraint leq(CspGenericLongConstant val)
val
- generic constrant to constrain this expression to
public CspConstraint gt(CspGenericLongConstant val)
val
- generic constrant to constrain this expression to
public CspConstraint geq(CspGenericLongConstant val)
val
- generic constrant to constrain this expression to
public CspConstraint neq(CspGenericLongConstant val)
val
- generic constrant to constrain this expression to
public CspConstraint between(long min, boolean minExclusive, long 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(long min, long max)
min
- value that this expression must be greater thanmax
- value that this expression must be less than
public CspConstraint notBetween(long min, boolean minExclusive, long 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(long min, long max)
min
- start of values that this expression may not containmax
- start of values that this expression may not contain
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |