|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjopt.csp.spi.arcalgorithm.variable.VariableChangeBase
jopt.csp.spi.arcalgorithm.constraint.AbstractConstraint
An abstract class used to represent a constraint. This class will contain all the items
that are common to boolean, numerical, and set constraints. Each of the aforementioned
types of constraints will implement or extend AbstractConstraint
.
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 |
associateToGraph(NodeArcGraph graph)
Associates a constraint to a graph |
GraphConstraint |
getGraphConstraintFragment(GenericIndex[] indices)
Returns a constraint that is a fragment of the current constraint based upon a set of indices that indication what portion of constraint should be returned |
PostableConstraint |
getPostableOpposite()
Returns a constraint that is the opposite of this constraint |
boolean |
isFalse()
Returns true if constraint cannot be satisfied |
boolean |
isTrue()
Returns true if constraint cannot be dissatisfied |
boolean |
isViolated(boolean allViolated)
Returns true if constraint cannot be satisfied. |
jopt.csp.variable.CspBooleanExpr |
toBoolean()
|
Methods inherited from class jopt.csp.spi.arcalgorithm.variable.VariableChangeBase |
addVariableChangeListener, removeVariableChangeListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jopt.csp.spi.arcalgorithm.graph.arc.PostableConstraint |
getBooleanSourceArcs, getBooleanSourceNodes, postToGraph |
Method Detail |
public void associateToGraph(NodeArcGraph graph)
associateToGraph
in interface GraphConstraint
public boolean isFalse()
isFalse
in interface jopt.csp.variable.CspConstraint
public boolean isTrue()
isTrue
in interface jopt.csp.variable.CspConstraint
public boolean isViolated(boolean allViolated)
allViolated
- Determines the criteria for violationpublic final PostableConstraint getPostableOpposite()
getPostableOpposite
in interface PostableConstraint
public final GraphConstraint getGraphConstraintFragment(GenericIndex[] indices)
GraphConstraint
getGraphConstraintFragment
in interface GraphConstraint
indices
- Array of indices that indicate fragment to return. Each index
must be set to a specific value to indicate fragment desired.public final jopt.csp.variable.CspBooleanExpr toBoolean()
toBoolean
in interface jopt.csp.variable.CspConstraint
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |