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