|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for generic float expressions
Method Summary | |
CspGenericLongExpr |
add(CspGenericLongConstant l)
Returns an expression representing the sum of this expression with a static generic 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. |
CspGenericLongExpr |
divide(CspGenericLongConstant l)
Returns an expression representing the quotient of this expression with a static generic value |
CspConstraint |
eq(CspGenericLongConstant val)
Returns a constraint restricting this expression to a value |
CspConstraint |
geq(CspGenericLongConstant val)
Returns a constraint restricting this expression to values above and including a given minimum |
CspLongCast |
getExpression(int offset)
Returns a numeric expression from the internal array |
long |
getLargestMax()
Returns the largest maximal value of all variables in the internal array |
long |
getLargestMax(int start,
int end)
Returns the largest maximal value of all variables in the internal array within start and end offsets |
long |
getLargestMin()
Returns the largest minimal value of all variables in the internal array |
long |
getLargestMin(int start,
int end)
Returns the largest minimal value of all variables in the internal array within start and end offsets |
long |
getSmallestMax()
Returns the smallest maximal value of all variables in the internal array |
long |
getSmallestMax(int start,
int end)
Returns the smallest maximal value of all variables in the internal array within start and end offsets |
long |
getSmallestMin()
Returns the smallest minimal value of all variables in the internal array |
long |
getSmallestMin(int start,
int end)
Returns the smallest minimal value of all variables in the internal array within start and end offsets |
CspConstraint |
gt(CspGenericLongConstant val)
Returns a constraint restricting this expression to values above a given minimum |
CspConstraint |
leq(CspGenericLongConstant val)
Returns a constraint restricting this expression to values below and including a given maximum |
CspConstraint |
lt(CspGenericLongConstant val)
Returns a constraint restricting this expression to values below a given maximum |
CspGenericLongExpr |
multiply(CspGenericLongConstant l)
Returns an expression representing the product of this expression with a static generic value |
CspConstraint |
neq(CspGenericLongConstant val)
Returns a 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 |
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.CspLongExpr |
add, add, add, add, add, add, divide, divide, divide, divide, divide, divide, eq, geq, getMax, getMin, gt, leq, lt, multiply, multiply, multiply, multiply, multiply, multiply, neq, subtract, subtract, subtract, subtract, subtract, subtract |
Method Detail |
public CspLongCast getExpression(int offset)
offset
- Offset of expression in internal expression array
public long getLargestMax()
public long getLargestMax(int start, int end)
start
- offset of the beginning of the range to calculate overend
- offset of the end of the range to calculate over
public long getSmallestMax()
public long getSmallestMax(int start, int end)
start
- offset of the beginning of the range to calculate overend
- offset of the end of the range to calculate over
public long getLargestMin()
public long getLargestMin(int start, int end)
start
- offset of the beginning of the range to calculate overend
- offset of the end of the range to calculate over
public long getSmallestMin()
public long getSmallestMin(int start, int end)
start
- offset of the beginning of the range to calculate overend
- offset of the end of the range to calculate over
public CspGenericLongExpr add(CspGenericLongConstant l)
l
- generic long constant to add to this expression
public CspGenericLongExpr subtract(CspGenericLongConstant l)
l
- generic long constant to subtract from this expression
public CspGenericLongExpr multiply(CspGenericLongConstant l)
l
- generic long constant to multiply by this expression
public CspGenericLongExpr divide(CspGenericLongConstant l)
l
- generic long constant to divide this expression by
public CspConstraint eq(CspGenericLongConstant val)
eq
in interface CspLongExpr
val
- value to constrain this expression to
public CspConstraint lt(CspGenericLongConstant val)
lt
in interface CspLongExpr
val
- value to constrain this expression to
public CspConstraint leq(CspGenericLongConstant val)
leq
in interface CspLongExpr
val
- value to constrain this expression to
public CspConstraint gt(CspGenericLongConstant val)
gt
in interface CspLongExpr
val
- value to constrain this expression to
public CspConstraint geq(CspGenericLongConstant val)
geq
in interface CspLongExpr
val
- value to constrain this expression to
public CspConstraint neq(CspGenericLongConstant val)
neq
in interface CspLongExpr
val
- value to constrain this expression to
public CspConstraint between(long min, boolean minExclusive, long max, boolean maxExclusive)
between
in interface CspLongExpr
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)
between
in interface CspLongExpr
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)
notBetween
in interface CspLongExpr
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)
notBetween
in interface CspLongExpr
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 |