|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJaCoP.constraints.DecomposedConstraint
JaCoP.constraints.Constraint
JaCoP.constraints.PrimitiveConstraint
public abstract class PrimitiveConstraint
Standard unified interface for all primitive constraints. In addition to functions defined by interface Constraint it also defines function notConsistency and notSatisfied. Only PrimitiveConstraints can be used as arguments to constraints Not, And, Or, etc.
| Field Summary | |
|---|---|
java.util.Hashtable<Var,java.lang.Integer> |
notConsistencyPruningEvents
It specifies the events which must occur for notConsistency() method being executed. |
| Fields inherited from class JaCoP.constraints.Constraint |
|---|
atomicExecution, consistencyPruningEvents, earlyTerminationOK, id, increaseWeight, numberArgs, numberId |
| Fields inherited from class JaCoP.constraints.DecomposedConstraint |
|---|
queueIndex |
| Constructor Summary | |
|---|---|
PrimitiveConstraint()
|
|
| Method Summary | |
|---|---|
abstract int |
getNestedPruningEvent(Var var,
boolean mode)
It retrieves the pruning event for which any composed constraint which uses this constraint should be evaluated. |
abstract int |
getNotConsistencyPruningEvent(Var var)
It retrieves the pruning event which causes reevaluation of the constraint notConsistency() function. |
abstract void |
notConsistency(Store store)
It makes pruning in such a way that constraint is notConsistent. |
abstract boolean |
notSatisfied()
It checks if constraint would be always not satisfied. |
void |
setNotConsistencyPruningEvent(Var var,
int pruningEvent)
It allows to specify customized events required to trigger execution of notConsitency() method. |
| Methods inherited from class JaCoP.constraints.Constraint |
|---|
arguments, cleanAfterFailure, consistency, decompose, getConsistencyPruningEvent, getGuideConstraint, getGuideValue, getGuideVariable, id, impose, impose, imposeDecomposition, increaseWeight, numberArgs, queueVariable, removeConstraint, removeLevel, removeLevelLate, requiresMonotonicity, satisfied, setConsistencyPruningEvent, supplyGuideFeedback, toString |
| Methods inherited from class JaCoP.constraints.DecomposedConstraint |
|---|
auxiliaryVariables, imposeDecomposition |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.util.Hashtable<Var,java.lang.Integer> notConsistencyPruningEvents
| Constructor Detail |
|---|
public PrimitiveConstraint()
| Method Detail |
|---|
public abstract int getNotConsistencyPruningEvent(Var var)
var - for which pruning event is retrieved
public abstract int getNestedPruningEvent(Var var,
boolean mode)
var - for which pruning event is retrievedmode - decides if pruning event for consistency or nonconsistency is required.
public abstract void notConsistency(Store store)
store - the constraint store in which context the notConsistency technique is evaluated.public abstract boolean notSatisfied()
public void setNotConsistencyPruningEvent(Var var,
int pruningEvent)
var - variable for which customized event is setup.pruningEvent - the type of the event being setup.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||