|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for generic integer expressions
Method Summary | |
CspGenericDoubleExpr |
add(CspGenericDoubleConstant d)
Returns an expression representing the sum of this expression with a static generic value |
CspGenericFloatExpr |
add(CspGenericFloatConstant f)
Returns an expression representing the sum of this expression with a static generic value |
CspGenericIntExpr |
add(CspGenericIntConstant i)
Returns an expression representing the sum of this expression with a static generic value |
CspGenericIntExpr |
add(CspGenericIntExpr i)
Returns an expression representing the sum of this expression with a static generic value |
CspGenericLongExpr |
add(CspGenericLongConstant l)
Returns an expression representing the sum of this expression with a static generic 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. |
CspGenericDoubleExpr |
divide(CspGenericDoubleConstant d)
Returns an expression representing the quotient of this expression with a static generic value |
CspGenericFloatExpr |
divide(CspGenericFloatConstant f)
Returns an expression representing the quotient of this expression with a static generic value |
CspGenericIntExpr |
divide(CspGenericIntConstant i)
Returns an expression representing the quotient of this expression with a static generic value |
CspGenericIntExpr |
divide(CspGenericIntExpr i)
Returns an expression representing the quotient of this expression with a static generic value |
CspGenericLongExpr |
divide(CspGenericLongConstant l)
Returns an expression representing the quotient of this expression with a static generic value |
CspConstraint |
eq(CspGenericIntConstant val)
Returns a constraint restricting this expression to a value |
CspConstraint |
geq(CspGenericIntConstant val)
Returns a constraint restricting this expression to values above and including a given minimum |
CspIntExpr |
getExpression(int offset)
Returns a numeric expression from the internal array |
int |
getLargestMax()
Returns the largest maximal value of all variables in the internal array |
int |
getLargestMax(int start,
int end)
Returns the largest maximal value of all variables in the internal array within start and end offsets |
int |
getLargestMin()
Returns the largest minimal value of all variables in the internal array |
int |
getLargestMin(int start,
int end)
Returns the largest minimal value of all variables in the internal array within start and end offsets |
int |
getSmallestMax()
Returns the smallest maximal value of all variables in the internal array |
int |
getSmallestMax(int start,
int end)
Returns the smallest maximal value of all variables in the internal array within start and end offsets |
int |
getSmallestMin()
Returns the smallest minimal value of all variables in the internal array |
int |
getSmallestMin(int start,
int end)
Returns the smallest minimal value of all variables in the internal array within start and end offsets |
CspConstraint |
gt(CspGenericIntConstant val)
Returns a constraint restricting this expression to values above a given minimum |
CspConstraint |
leq(CspGenericIntConstant val)
Returns a constraint restricting this expression to values below and including a given maximum |
CspConstraint |
lt(CspGenericIntConstant val)
Returns a constraint restricting this expression to values below a given maximum |
CspGenericDoubleExpr |
multiply(CspGenericDoubleConstant d)
Returns an expression representing the product of this expression with a static generic value |
CspGenericFloatExpr |
multiply(CspGenericFloatConstant f)
Returns an expression representing the product of this expression with a static generic value |
CspGenericIntExpr |
multiply(CspGenericIntConstant i)
Returns an expression representing the product of this expression with a static generic value |
CspGenericIntExpr |
multiply(CspGenericIntExpr i)
Returns an expression representing the product of this expression with a static generic value |
CspGenericLongExpr |
multiply(CspGenericLongConstant l)
Returns an expression representing the product of this expression with a static generic value |
CspConstraint |
neq(CspGenericIntConstant val)
Returns a 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 |
CspGenericDoubleExpr |
subtract(CspGenericDoubleConstant d)
Returns an expression representing the difference of this expression with a static generic value |
CspGenericFloatExpr |
subtract(CspGenericFloatConstant f)
Returns an expression representing the difference of this expression with a static generic value |
CspGenericIntExpr |
subtract(CspGenericIntConstant i)
Returns an expression representing the difference of this expression with a static generic value |
CspGenericIntExpr |
subtract(CspGenericIntExpr i)
Returns an expression representing the difference of this expression with a static generic value |
CspGenericLongExpr |
subtract(CspGenericLongConstant l)
Returns an expression representing the difference of this expression with a static generic value |
Methods inherited from interface jopt.csp.variable.CspGenericNumExpr |
getExpressionCount, getIndices |
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.CspIntExpr |
add, add, add, add, add, add, add, add, divide, divide, divide, divide, divide, divide, divide, divide, eq, geq, getMax, getMin, gt, leq, lt, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, neq, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract |
Method Detail |
public CspIntExpr getExpression(int offset)
offset
- Offset of expression in internal expression array
public int getLargestMax()
public int getLargestMax(int start, int end)
start
- offset of the beginning of the range to coverend
- offset of the end of the range to cover
public int getSmallestMax()
public int getSmallestMax(int start, int end)
start
- offset of the beginning of the range to coverend
- offset of the end of the range to cover
public int getLargestMin()
public int getLargestMin(int start, int end)
start
- offset of the beginning of the range to coverend
- offset of the end of the range to cover
public int getSmallestMin()
public int getSmallestMin(int start, int end)
start
- offset of the beginning of the range to coverend
- offset of the end of the range to cover
public CspGenericIntExpr add(CspGenericIntConstant i)
i
- generic int constant representing the value to be added to this
public CspGenericIntExpr add(CspGenericIntExpr i)
i
- generic int expression representing the value to be added to this
public CspGenericLongExpr add(CspGenericLongConstant l)
l
- generic long constant representing the value to be added to this
public CspGenericFloatExpr add(CspGenericFloatConstant f)
f
- generic float constant representing the value to be added to this
public CspGenericDoubleExpr add(CspGenericDoubleConstant d)
d
- generic double constant representing the value to be added to this
public CspGenericIntExpr subtract(CspGenericIntConstant i)
i
- generic int constant representing the value to be subtracted from this
public CspGenericIntExpr subtract(CspGenericIntExpr i)
i
- generic int expression representing the value to be subtracted from this
public CspGenericLongExpr subtract(CspGenericLongConstant l)
l
- generic long constant representing the value to be subtract from this
public CspGenericFloatExpr subtract(CspGenericFloatConstant f)
f
- generic float constant representing the value to be subtracted from this
public CspGenericDoubleExpr subtract(CspGenericDoubleConstant d)
d
- generic double constant representing the value to be subtracted from this
public CspGenericIntExpr multiply(CspGenericIntConstant i)
i
- generic int constant representing the value to be multiplied by this
public CspGenericIntExpr multiply(CspGenericIntExpr i)
i
- generic int expression representing the value to be multiplied by this
public CspGenericLongExpr multiply(CspGenericLongConstant l)
l
- generic long constant representing the value to be multiply by this
public CspGenericFloatExpr multiply(CspGenericFloatConstant f)
f
- generic float constant representing the value to be multiply by this
public CspGenericDoubleExpr multiply(CspGenericDoubleConstant d)
d
- generic double constant representing the value to be multiply by this
public CspGenericIntExpr divide(CspGenericIntConstant i)
i
- generic int constant representing the value to divide this by
public CspGenericIntExpr divide(CspGenericIntExpr i)
i
- generic int expression representing the value to divide this by
public CspGenericLongExpr divide(CspGenericLongConstant l)
l
- generic long constant representing the value to divide this by
public CspGenericFloatExpr divide(CspGenericFloatConstant f)
f
- generic float constant representing the value to divid this by
public CspGenericDoubleExpr divide(CspGenericDoubleConstant d)
d
- generic double constant representing the value to divide this by
public CspConstraint eq(CspGenericIntConstant val)
eq
in interface CspIntExpr
val
- value to constaint this to
public CspConstraint lt(CspGenericIntConstant val)
lt
in interface CspIntExpr
val
- value to constaint this to
public CspConstraint leq(CspGenericIntConstant val)
leq
in interface CspIntExpr
val
- value to constaint this to
public CspConstraint gt(CspGenericIntConstant val)
gt
in interface CspIntExpr
val
- value to constaint this to
public CspConstraint geq(CspGenericIntConstant val)
geq
in interface CspIntExpr
val
- value to constaint this to
public CspConstraint neq(CspGenericIntConstant val)
neq
in interface CspIntExpr
val
- value to constaint this to
public CspConstraint between(int min, boolean minExclusive, int max, boolean maxExclusive)
between
in interface CspIntExpr
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)
between
in interface CspIntExpr
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)
notBetween
in interface CspIntExpr
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)
notBetween
in interface CspIntExpr
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 |