|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for generic float 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 |
CspConstraint |
between(float min,
boolean minExclusive,
float max,
boolean maxExclusive)
Returns a constraint restricting this expression to be between a min and max. |
CspConstraint |
between(float min,
float 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 |
CspConstraint |
eq(CspGenericFloatConstant val)
Returns a constraint restricting this expression to a value |
CspConstraint |
geq(CspGenericFloatConstant val)
Returns a constraint restricting this expression to values above and including a given minimum |
CspFloatCast |
getExpression(int offset)
Returns a numeric expression from the internal array |
float |
getLargestMax()
Returns the largest maximal value of all variables in the internal array |
float |
getLargestMax(int start,
int end)
Returns the largest maximal value of all variables in the internal array within start and end offsets |
float |
getLargestMin()
Returns the largest minimal value of all variables in the internal array |
float |
getLargestMin(int start,
int end)
Returns the largest minimal value of all variables in the internal array within start and end offsets |
float |
getSmallestMax()
Returns the smallest maximal value of all variables in the internal array |
float |
getSmallestMax(int start,
int end)
Returns the smallest maximal value of all variables in the internal array within start and end offsets |
float |
getSmallestMin()
Returns the smallest minimal value of all variables in the internal array |
float |
getSmallestMin(int start,
int end)
Returns the smallest minimal value of all variables in the internal array within start and end offsets |
CspConstraint |
leq(CspGenericFloatConstant val)
Returns a constraint restricting this expression to values below and including 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 |
CspConstraint |
notBetween(float min,
boolean minExclusive,
float max,
boolean maxExclusive)
Returns a constraint restricting this expression to not fall within a given range from a min to max value |
CspConstraint |
notBetween(float min,
float 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 |
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.CspFloatExpr |
add, add, add, add, divide, divide, divide, divide, eq, geq, getMax, getMin, getPrecision, leq, multiply, multiply, multiply, multiply, setPrecision, subtract, subtract, subtract, subtract |
Method Detail |
public CspFloatCast getExpression(int offset)
offset
- Offset of expression in internal expression array
public float getLargestMax()
public float getLargestMax(int start, int end)
public float getSmallestMax()
public float getSmallestMax(int start, int end)
public float getLargestMin()
public float getLargestMin(int start, int end)
public float getSmallestMin()
public float getSmallestMin(int start, int end)
start
- offset of the beginning of the range to
public CspGenericFloatExpr add(CspGenericFloatConstant f)
f
- generic constant float to add to this expression
public CspGenericDoubleExpr add(CspGenericDoubleConstant d)
d
- generic constant double to add to this expression
public CspGenericFloatExpr subtract(CspGenericFloatConstant f)
f
- generic constant float to subtract from this expression
public CspGenericDoubleExpr subtract(CspGenericDoubleConstant d)
d
- generic constant double to subtract from this expression
public CspGenericFloatExpr multiply(CspGenericFloatConstant f)
f
- generic constant float to multiply by this expression
public CspGenericDoubleExpr multiply(CspGenericDoubleConstant d)
d
- generic constant double to multiply by this expression
public CspGenericFloatExpr divide(CspGenericFloatConstant f)
f
- generic constant float to divide this expression by
public CspGenericDoubleExpr divide(CspGenericDoubleConstant d)
d
- generic constant double to divide this expression by
public CspConstraint eq(CspGenericFloatConstant val)
eq
in interface CspFloatExpr
val
- generic float to constrain the domain to
public CspConstraint leq(CspGenericFloatConstant val)
leq
in interface CspFloatExpr
val
- generic float to constrain the domain to be less than or equal to
public CspConstraint geq(CspGenericFloatConstant val)
geq
in interface CspFloatExpr
val
- generic float to constrain the domain to be greater than or equal to
public CspConstraint between(float min, boolean minExclusive, float max, boolean maxExclusive)
between
in interface CspFloatExpr
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(float min, float max)
between
in interface CspFloatExpr
min
- value that this expression must be greater thanmax
- value that this expression must be less than
public CspConstraint notBetween(float min, boolean minExclusive, float max, boolean maxExclusive)
notBetween
in interface CspFloatExpr
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(float min, float max)
notBetween
in interface CspFloatExpr
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 |