|
|||||||||||
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.constraint.AbstractConstraint jopt.csp.spi.arcalgorithm.constraint.set.SetConstraint
Base Constraint class for Set Constraints
Field Summary |
Fields inherited from interface jopt.csp.spi.util.NumConstants |
ADD, DIVIDE, DIVIDE_BY, DIVIDE_BY_CEIL, DIVIDE_BY_FLOOR, DIVIDE_CEIL, DIVIDE_FLOOR, DOUBLE, DOUBLE_NEG_INF, DOUBLE_POS_INF, DOUBLE_ZERO, EQ, FLOAT, FLOAT_NEG_INF, FLOAT_POS_INF, FLOAT_ZERO, GEQ, GT, HALF_PI, INTEGER, INTEGER_MAX, INTEGER_MIN, INTEGER_ZERO, LEQ, LONG, LONG_MAX, LONG_MIN, LONG_ZERO, LT, MULTIPLY, NEQ, ONE_AND_HALF_PI, PI, RANGE, SUBTRACT, SUBTRACT_FROM, TWO_PI |
Method Summary | |
void |
addVariableChangeListener(VariableChangeListener listener)
Adds a listener interested in variable change events |
Arc[] |
getBooleanSourceArcs()
Returns array of arcs that will affect the boolean true / false value of this constraint upon a change |
Node[] |
getBooleanSourceNodes()
Returns array of nodes that will affect the boolean true / false value of this constraint upon a change |
boolean |
isOverRealInterval()
|
boolean |
isViolated(boolean allViolated)
Returns true if constraint cannot be satisfied. |
void |
postToGraph()
Posts a boolean constraint to the graph for use during propagation |
void |
removeVariableChangeListener(VariableChangeListener listener)
Removes a variable listener from this variable |
Methods inherited from class jopt.csp.spi.arcalgorithm.constraint.AbstractConstraint |
associateToGraph, getGraphConstraintFragment, getPostableOpposite, isFalse, isTrue, toBoolean |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean isOverRealInterval()
public void postToGraph()
PostableConstraint
postToGraph
in interface PostableConstraint
public Arc[] getBooleanSourceArcs()
PostableConstraint
getBooleanSourceArcs
in interface PostableConstraint
public Node[] getBooleanSourceNodes()
PostableConstraint
getBooleanSourceNodes
in interface PostableConstraint
public void addVariableChangeListener(VariableChangeListener listener)
VariableChangeSource
addVariableChangeListener
in interface VariableChangeSource
addVariableChangeListener
in class VariableChangeBase
public void removeVariableChangeListener(VariableChangeListener listener)
VariableChangeSource
removeVariableChangeListener
in interface VariableChangeSource
removeVariableChangeListener
in class VariableChangeBase
public boolean isViolated(boolean allViolated)
AbstractConstraint
isViolated
in class AbstractConstraint
allViolated
- Determines the criteria for violation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |