|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.spi.arcalgorithm.variable.VariableChangeBase jopt.csp.spi.arcalgorithm.variable.NumExprBase jopt.csp.spi.arcalgorithm.variable.LongExpr
Constructor Summary | |
LongExpr(java.lang.String name,
jopt.csp.variable.CspGenericLongCast aexpr,
GenericIndex[] rangeIndices,
jopt.csp.variable.CspGenericIndexRestriction sourceIdxRestriction)
|
|
LongExpr(java.lang.String name,
LongCast aexpr,
int operation)
|
|
LongExpr(java.lang.String name,
LongCast aexpr,
int operation,
long b)
|
|
LongExpr(java.lang.String name,
LongCast aexpr,
int operation,
LongCast bexpr)
Internal Constructor |
|
LongExpr(java.lang.String name,
long a,
int operation,
LongCast bexpr)
|
Method Summary | |
jopt.csp.variable.CspDoubleExpr |
add(jopt.csp.variable.CspDoubleExpr expr)
Returns an expression representing the sum of this expression with another expression |
jopt.csp.variable.CspFloatExpr |
add(jopt.csp.variable.CspFloatExpr expr)
Returns an expression representing the sum of this expression with another expression |
jopt.csp.variable.CspLongExpr |
add(jopt.csp.variable.CspLongCast expr)
Returns an expression representing the sum of this expression with another expression |
jopt.csp.variable.CspDoubleExpr |
add(double d)
Returns an expression representing the sum of this expression with a static value |
jopt.csp.variable.CspFloatExpr |
add(float f)
Returns an expression representing the sum of this expression with a static value |
jopt.csp.variable.CspLongExpr |
add(long l)
Returns an expression representing the sum of this expression with a static value |
jopt.csp.variable.CspConstraint |
between(long min,
boolean minExclusive,
long max,
boolean maxExclusive)
|
jopt.csp.variable.CspConstraint |
between(long min,
long max)
|
jopt.csp.variable.CspDoubleExpr |
divide(jopt.csp.variable.CspDoubleExpr expr)
Returns an expression representing the quotient of this expression with another expression |
jopt.csp.variable.CspFloatExpr |
divide(jopt.csp.variable.CspFloatExpr expr)
Returns an expression representing the quotient of this expression with another expression |
jopt.csp.variable.CspLongExpr |
divide(jopt.csp.variable.CspLongCast expr)
Returns an expression representing the quotient of this expression with another expression |
jopt.csp.variable.CspDoubleExpr |
divide(double d)
Returns an expression representing the quotient of this expression with a static value |
jopt.csp.variable.CspFloatExpr |
divide(float f)
Returns an expression representing the quotient of this expression with a static value |
jopt.csp.variable.CspLongExpr |
divide(long l)
Returns an expression representing the quotient of this expression with a static value |
jopt.csp.variable.CspConstraint |
eq(jopt.csp.variable.CspGenericLongConstant val)
Returns constraint restricting this expression to a value |
jopt.csp.variable.CspConstraint |
eq(long val)
Returns constraint restricting this expression to a value |
jopt.csp.variable.CspConstraint |
geq(jopt.csp.variable.CspGenericLongConstant val)
Returns constraint restricting this expression to values above and including a given minimum |
jopt.csp.variable.CspConstraint |
geq(long val)
Returns constraint restricting this expression to values above and including a given minimum |
DoubleDomain |
getDoubleDomain()
Returns domain of this expression |
FloatDomain |
getFloatDomain()
Returns domain of this expression |
LongDomain |
getLongDomain()
Returns domain of this expression |
long |
getMax()
Returns maximum value of expression |
long |
getMin()
Returns minimal value of expression |
java.lang.Number |
getNextHigher(java.lang.Number val)
Returns the next higher value in this variable's domain or current value if none exists |
java.lang.Number |
getNextLower(java.lang.Number val)
Returns the next lower value in this variable's domain or current value if none exists |
Node |
getNode()
Retrieves node for an expression |
int |
getNumberType()
Returns the type of expression: Int, Long, etc. |
java.lang.Number |
getNumMax()
Returns maximum value of this variable's domain |
java.lang.Number |
getNumMin()
Returns minimum value of this variable's domain |
double |
getPrecision()
Returns precision associated with this expression's domain for real numbers |
jopt.csp.variable.CspConstraint |
gt(jopt.csp.variable.CspGenericLongConstant val)
Returns constraint restricting this expression to values above a given minimum |
jopt.csp.variable.CspConstraint |
gt(long val)
Returns constraint restricting this expression to values above a given minimum |
boolean |
isInDomain(java.lang.Number n)
Returns true if value is in domain of this expression |
jopt.csp.variable.CspConstraint |
leq(jopt.csp.variable.CspGenericLongConstant val)
Returns constraint restricting this expression to values below and including a given maximum |
jopt.csp.variable.CspConstraint |
leq(long val)
Returns constraint restricting this expression to values below and including a given maximum |
jopt.csp.variable.CspConstraint |
lt(jopt.csp.variable.CspGenericLongConstant val)
Returns constraint restricting this expression to values below a given maximum |
jopt.csp.variable.CspConstraint |
lt(long val)
Returns constraint restricting this expression to values below a given maximum |
jopt.csp.variable.CspDoubleExpr |
multiply(jopt.csp.variable.CspDoubleExpr expr)
Returns an expression representing the product of this expression with another expression |
jopt.csp.variable.CspFloatExpr |
multiply(jopt.csp.variable.CspFloatExpr expr)
Returns an expression representing the product of this expression with another expression |
jopt.csp.variable.CspLongExpr |
multiply(jopt.csp.variable.CspLongCast expr)
Returns an expression representing the product of this expression with another expression |
jopt.csp.variable.CspDoubleExpr |
multiply(double d)
Returns an expression representing the product of this expression with a static value |
jopt.csp.variable.CspFloatExpr |
multiply(float f)
Returns an expression representing the product of this expression with a static value |
jopt.csp.variable.CspLongExpr |
multiply(long l)
Returns an expression representing the product of this expression with a static value |
jopt.csp.variable.CspConstraint |
neq(jopt.csp.variable.CspGenericLongConstant val)
Returns constraint restricting this expression to all values not equivalent to supplied value |
jopt.csp.variable.CspConstraint |
neq(long val)
Returns constraint restricting this expression to all values not equivalent to supplied value |
jopt.csp.variable.CspConstraint |
notBetween(long min,
boolean minExclusive,
long max,
boolean maxExclusive)
|
jopt.csp.variable.CspConstraint |
notBetween(long min,
long max)
|
void |
setPrecision(double p)
Sets precision associated with this expression's domain for real numbers |
jopt.csp.variable.CspDoubleExpr |
subtract(jopt.csp.variable.CspDoubleExpr expr)
Returns an expression representing the difference of this expression with another expression |
jopt.csp.variable.CspFloatExpr |
subtract(jopt.csp.variable.CspFloatExpr expr)
Returns an expression representing the difference of this expression with another expression |
jopt.csp.variable.CspLongExpr |
subtract(jopt.csp.variable.CspLongCast expr)
Returns an expression representing the difference of this expression with another expression |
jopt.csp.variable.CspDoubleExpr |
subtract(double d)
Returns an expression representing the difference of this expression with a static value |
jopt.csp.variable.CspFloatExpr |
subtract(float f)
Returns an expression representing the difference of this expression with a static value |
jopt.csp.variable.CspLongExpr |
subtract(long l)
Returns an expression representing the difference of this expression with a static value |
Methods inherited from class jopt.csp.spi.arcalgorithm.variable.NumExprBase |
addVariableChangeListener, between, between, between, between, eq, equals, geq, getBooleanSourceArcs, getDomain, getName, getNodeCollection, gt, hashCode, isBound, leq, lt, neq, notBetween, notBetween, notBetween, notBetween, removeVariableChangeListener, setName, toString, updateGraph |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
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.spi.arcalgorithm.constraint.num.NumExpr |
getBooleanSourceArcs, getName, getNodeCollection, isBound, updateGraph |
Constructor Detail |
public LongExpr(java.lang.String name, LongCast aexpr, int operation, LongCast bexpr)
public LongExpr(java.lang.String name, long a, int operation, LongCast bexpr)
public LongExpr(java.lang.String name, LongCast aexpr, int operation, long b)
public LongExpr(java.lang.String name, LongCast aexpr, int operation)
public LongExpr(java.lang.String name, jopt.csp.variable.CspGenericLongCast aexpr, GenericIndex[] rangeIndices, jopt.csp.variable.CspGenericIndexRestriction sourceIdxRestriction)
Method Detail |
public Node getNode()
getNode
in interface NumExpr
public int getNumberType()
getNumberType
in interface NumExpr
public DoubleDomain getDoubleDomain()
getDoubleDomain
in interface DoubleCast
public FloatDomain getFloatDomain()
getFloatDomain
in interface FloatCast
public LongDomain getLongDomain()
getLongDomain
in interface LongCast
public long getMin()
getMin
in interface jopt.csp.variable.CspLongExpr
public long getMax()
getMax
in interface jopt.csp.variable.CspLongExpr
public java.lang.Number getNumMax()
getNumMax
in interface NumExpr
public java.lang.Number getNumMin()
getNumMin
in interface NumExpr
public java.lang.Number getNextHigher(java.lang.Number val)
NumExpr
getNextHigher
in interface NumExpr
public java.lang.Number getNextLower(java.lang.Number val)
NumExpr
getNextLower
in interface NumExpr
public void setPrecision(double p)
NumExpr
setPrecision
in interface NumExpr
public double getPrecision()
NumExpr
getPrecision
in interface NumExpr
public boolean isInDomain(java.lang.Number n)
TrigExpr
isInDomain
in interface TrigExpr
public jopt.csp.variable.CspLongExpr add(long l)
add
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspFloatExpr add(float f)
add
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspDoubleExpr add(double d)
add
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspLongExpr add(jopt.csp.variable.CspLongCast expr)
add
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspFloatExpr add(jopt.csp.variable.CspFloatExpr expr)
add
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspDoubleExpr add(jopt.csp.variable.CspDoubleExpr expr)
add
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspLongExpr subtract(long l)
subtract
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspFloatExpr subtract(float f)
subtract
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspDoubleExpr subtract(double d)
subtract
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspLongExpr subtract(jopt.csp.variable.CspLongCast expr)
subtract
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspFloatExpr subtract(jopt.csp.variable.CspFloatExpr expr)
subtract
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspDoubleExpr subtract(jopt.csp.variable.CspDoubleExpr expr)
subtract
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspLongExpr multiply(long l)
multiply
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspFloatExpr multiply(float f)
multiply
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspDoubleExpr multiply(double d)
multiply
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspLongExpr multiply(jopt.csp.variable.CspLongCast expr)
multiply
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspFloatExpr multiply(jopt.csp.variable.CspFloatExpr expr)
multiply
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspDoubleExpr multiply(jopt.csp.variable.CspDoubleExpr expr)
multiply
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspLongExpr divide(long l)
divide
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspFloatExpr divide(float f)
divide
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspDoubleExpr divide(double d)
divide
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspLongExpr divide(jopt.csp.variable.CspLongCast expr)
divide
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspFloatExpr divide(jopt.csp.variable.CspFloatExpr expr)
divide
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspDoubleExpr divide(jopt.csp.variable.CspDoubleExpr expr)
divide
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint eq(long val)
eq
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint lt(long val)
lt
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint leq(long val)
leq
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint gt(long val)
gt
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint geq(long val)
geq
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint neq(long val)
neq
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint eq(jopt.csp.variable.CspGenericLongConstant val)
eq
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint lt(jopt.csp.variable.CspGenericLongConstant val)
lt
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint leq(jopt.csp.variable.CspGenericLongConstant val)
leq
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint gt(jopt.csp.variable.CspGenericLongConstant val)
gt
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint geq(jopt.csp.variable.CspGenericLongConstant val)
geq
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint neq(jopt.csp.variable.CspGenericLongConstant val)
neq
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint between(long min, boolean minExclusive, long max, boolean maxExclusive)
between
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint between(long min, long max)
between
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint notBetween(long min, boolean minExclusive, long max, boolean maxExclusive)
notBetween
in interface jopt.csp.variable.CspLongExpr
public jopt.csp.variable.CspConstraint notBetween(long min, long max)
notBetween
in interface jopt.csp.variable.CspLongExpr
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |