|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base interface for numeric-based expressions
Method Summary | |
CspConstraint |
between(CspGenericNumConstant min,
boolean minExclusive,
CspGenericNumConstant max,
boolean maxExclusive)
Returns a constraint restricting this expression to be between a min and max. |
CspConstraint |
between(CspGenericNumConstant min,
CspGenericNumConstant max)
Returns a constraint restricting this expression to be between or equal min and max. |
CspConstraint |
between(CspNumExpr min,
boolean minExclusive,
CspNumExpr max,
boolean maxExclusive)
Returns a constraint restricting this expression to be between a min and max. |
CspConstraint |
between(CspNumExpr min,
CspNumExpr max)
Returns a constraint restricting this expression to be between or equal min and max. |
CspConstraint |
eq(CspNumExpr val)
Returns a constraint restricting this expression to a value |
CspConstraint |
geq(CspNumExpr val)
Returns a constraint restricting this expression to values above and including a given minimum |
java.lang.String |
getName()
Returns the name of this expression |
CspConstraint |
gt(CspNumExpr val)
Returns a constraint restricting this expression to values above a given minimum |
boolean |
isBound()
Returns true if this expression's domain is bound to a value |
CspConstraint |
leq(CspNumExpr val)
Returns a constraint restricting this expression to values below and including a given maximum |
CspConstraint |
lt(CspNumExpr val)
Returns a constraint restricting this expression to values below a given maximum |
CspConstraint |
neq(CspNumExpr val)
Returns a constraint restricting this expression to all values not equivalent to supplied value |
CspConstraint |
notBetween(CspGenericNumConstant min,
boolean minExclusive,
CspGenericNumConstant max,
boolean maxExclusive)
Returns a constraint restricting this expression to not fall within a given range from a min to max value |
CspConstraint |
notBetween(CspGenericNumConstant min,
CspGenericNumConstant 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 |
CspConstraint |
notBetween(CspNumExpr min,
boolean minExclusive,
CspNumExpr max,
boolean maxExclusive)
Returns a constraint restricting this expression to not fall within a given range from a min to max value |
CspConstraint |
notBetween(CspNumExpr min,
CspNumExpr 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 |
void |
setName(java.lang.String name)
Sets the name of this expression |
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- new name for this expressionpublic CspConstraint eq(CspNumExpr val)
val
- expression to constain this expression to
public CspConstraint lt(CspNumExpr val)
val
- expression to constain this expression to
public CspConstraint leq(CspNumExpr val)
val
- expression to constain this expression to
public CspConstraint gt(CspNumExpr val)
val
- expression to constain this expression to
public CspConstraint geq(CspNumExpr val)
val
- expression to constain this expression to
public CspConstraint neq(CspNumExpr val)
val
- expression to constain this expression to
public CspConstraint between(CspNumExpr min, boolean minExclusive, CspNumExpr 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(CspNumExpr min, CspNumExpr max)
min
- value that this expression must be greater thanmax
- value that this expression must be less than
public CspConstraint between(CspGenericNumConstant min, boolean minExclusive, CspGenericNumConstant 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(CspGenericNumConstant min, CspGenericNumConstant max)
min
- value that this expression must be greater thanmax
- value that this expression must be less than
public CspConstraint notBetween(CspNumExpr min, boolean minExclusive, CspNumExpr 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(CspNumExpr min, CspNumExpr max)
min
- start of values that this expression may not containmax
- start of values that this expression may not contain
public CspConstraint notBetween(CspGenericNumConstant min, boolean minExclusive, CspGenericNumConstant 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(CspGenericNumConstant min, CspGenericNumConstant max)
min
- start of values that this expression may not containmax
- start of values that this expression may not contain
public boolean isBound()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |