|
|||||||||||
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
Method Summary | |
void |
addVariableChangeListener(VariableChangeListener listener)
Adds a listener interested in variable change events |
jopt.csp.variable.CspConstraint |
between(jopt.csp.variable.CspGenericNumConstant min,
boolean minExclusive,
jopt.csp.variable.CspGenericNumConstant max,
boolean maxExclusive)
Returns a constraint restricting this expression to be between a min and max. |
jopt.csp.variable.CspConstraint |
between(jopt.csp.variable.CspGenericNumConstant min,
jopt.csp.variable.CspGenericNumConstant max)
Returns a constraint restricting this expression to be between or equal min and max. |
jopt.csp.variable.CspConstraint |
between(jopt.csp.variable.CspNumExpr min,
boolean minExclusive,
jopt.csp.variable.CspNumExpr max,
boolean maxExclusive)
Returns a constraint restricting this expression to be between a min and max. |
jopt.csp.variable.CspConstraint |
between(jopt.csp.variable.CspNumExpr min,
jopt.csp.variable.CspNumExpr max)
Returns a constraint restricting this expression to be between or equal min and max. |
jopt.csp.variable.CspConstraint |
eq(jopt.csp.variable.CspNumExpr val)
Returns constraint restricting this expression to a value |
boolean |
equals(java.lang.Object obj)
Allows for equality comparisons between NumExprBase objects |
jopt.csp.variable.CspConstraint |
geq(jopt.csp.variable.CspNumExpr val)
Returns constraint restricting this expression to values above and including a given minimum |
Arc[] |
getBooleanSourceArcs()
Returns array of arcs that will affect the boolean true / false value of this constraint upon a change |
NumDomain |
getDomain()
Returns domain associated with this expression |
java.lang.String |
getName()
Returns the name of this expression |
java.util.Collection |
getNodeCollection()
Returns collection of all nodes used to build this expression |
jopt.csp.variable.CspConstraint |
gt(jopt.csp.variable.CspNumExpr val)
Returns constraint restricting this expression to values above a given minimum |
int |
hashCode()
Returns a hash code based on this variable's name (if one exists) |
boolean |
isBound()
Returns true if this expression's domain is bound to a value |
jopt.csp.variable.CspConstraint |
leq(jopt.csp.variable.CspNumExpr val)
Returns constraint restricting this expression to values below and including a given maximum |
jopt.csp.variable.CspConstraint |
lt(jopt.csp.variable.CspNumExpr val)
Returns constraint restricting this expression to values below a given maximum |
jopt.csp.variable.CspConstraint |
neq(jopt.csp.variable.CspNumExpr val)
Returns constraint restricting this expression to all values not equivalent to supplied value |
jopt.csp.variable.CspConstraint |
notBetween(jopt.csp.variable.CspGenericNumConstant min,
boolean minExclusive,
jopt.csp.variable.CspGenericNumConstant max,
boolean maxExclusive)
Returns a constraint restricting this expression to not fall within a given range from a min to max value |
jopt.csp.variable.CspConstraint |
notBetween(jopt.csp.variable.CspGenericNumConstant min,
jopt.csp.variable.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 |
jopt.csp.variable.CspConstraint |
notBetween(jopt.csp.variable.CspNumExpr min,
boolean minExclusive,
jopt.csp.variable.CspNumExpr max,
boolean maxExclusive)
Returns a constraint restricting this expression to not fall within a given range from a min to max value |
jopt.csp.variable.CspConstraint |
notBetween(jopt.csp.variable.CspNumExpr min,
jopt.csp.variable.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 |
removeVariableChangeListener(VariableChangeListener listener)
Removes a variable listener from this variable |
void |
setName(java.lang.String name)
Sets the name of this expression |
java.lang.String |
toString()
|
void |
updateGraph(NodeArcGraph graph)
Adds arcs representing this expression to the node arc graph |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jopt.csp.spi.arcalgorithm.constraint.num.NumExpr |
getNextHigher, getNextLower, getNode, getNumberType, getNumMax, getNumMin, getPrecision, setPrecision |
Methods inherited from interface jopt.csp.spi.util.TrigExpr |
isInDomain |
Method Detail |
public final void setName(java.lang.String name)
setName
in interface jopt.csp.variable.CspNumExpr
public final java.lang.String getName()
getName
in interface jopt.csp.variable.CspNumExpr
public final NumDomain getDomain()
public boolean isBound()
isBound
in interface jopt.csp.variable.CspNumExpr
public java.util.Collection getNodeCollection()
getNodeCollection
in interface NumExpr
public Arc[] getBooleanSourceArcs()
getBooleanSourceArcs
in interface NumExpr
public void updateGraph(NodeArcGraph graph)
updateGraph
in interface NumExpr
public jopt.csp.variable.CspConstraint eq(jopt.csp.variable.CspNumExpr val)
eq
in interface jopt.csp.variable.CspNumExpr
public jopt.csp.variable.CspConstraint leq(jopt.csp.variable.CspNumExpr val)
leq
in interface jopt.csp.variable.CspNumExpr
public jopt.csp.variable.CspConstraint lt(jopt.csp.variable.CspNumExpr val)
lt
in interface jopt.csp.variable.CspNumExpr
public jopt.csp.variable.CspConstraint gt(jopt.csp.variable.CspNumExpr val)
gt
in interface jopt.csp.variable.CspNumExpr
public jopt.csp.variable.CspConstraint geq(jopt.csp.variable.CspNumExpr val)
geq
in interface jopt.csp.variable.CspNumExpr
public jopt.csp.variable.CspConstraint neq(jopt.csp.variable.CspNumExpr val)
neq
in interface jopt.csp.variable.CspNumExpr
public jopt.csp.variable.CspConstraint between(jopt.csp.variable.CspNumExpr min, boolean minExclusive, jopt.csp.variable.CspNumExpr max, boolean maxExclusive)
between
in interface jopt.csp.variable.CspNumExpr
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 jopt.csp.variable.CspConstraint between(jopt.csp.variable.CspNumExpr min, jopt.csp.variable.CspNumExpr max)
between
in interface jopt.csp.variable.CspNumExpr
min
- value that this expression must be greater thanmax
- value that this expression must be less than
public jopt.csp.variable.CspConstraint between(jopt.csp.variable.CspGenericNumConstant min, boolean minExclusive, jopt.csp.variable.CspGenericNumConstant max, boolean maxExclusive)
between
in interface jopt.csp.variable.CspNumExpr
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 jopt.csp.variable.CspConstraint between(jopt.csp.variable.CspGenericNumConstant min, jopt.csp.variable.CspGenericNumConstant max)
between
in interface jopt.csp.variable.CspNumExpr
min
- value that this expression must be greater thanmax
- value that this expression must be less than
public jopt.csp.variable.CspConstraint notBetween(jopt.csp.variable.CspNumExpr min, boolean minExclusive, jopt.csp.variable.CspNumExpr max, boolean maxExclusive)
notBetween
in interface jopt.csp.variable.CspNumExpr
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 jopt.csp.variable.CspConstraint notBetween(jopt.csp.variable.CspNumExpr min, jopt.csp.variable.CspNumExpr max)
notBetween
in interface jopt.csp.variable.CspNumExpr
min
- start of values that this expression may not containmax
- start of values that this expression may not contain
public jopt.csp.variable.CspConstraint notBetween(jopt.csp.variable.CspGenericNumConstant min, boolean minExclusive, jopt.csp.variable.CspGenericNumConstant max, boolean maxExclusive)
notBetween
in interface jopt.csp.variable.CspNumExpr
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 jopt.csp.variable.CspConstraint notBetween(jopt.csp.variable.CspGenericNumConstant min, jopt.csp.variable.CspGenericNumConstant max)
notBetween
in interface jopt.csp.variable.CspNumExpr
min
- start of values that this expression may not containmax
- start of values that this expression may not contain
public int hashCode()
public final boolean equals(java.lang.Object obj)
obj
-
public java.lang.String toString()
public void addVariableChangeListener(VariableChangeListener listener)
addVariableChangeListener
in interface VariableChangeSource
addVariableChangeListener
in class VariableChangeBase
public void removeVariableChangeListener(VariableChangeListener listener)
removeVariableChangeListener
in interface VariableChangeSource
removeVariableChangeListener
in class VariableChangeBase
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |