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