public class VariableTrace extends Constraint implements UsesQueueVariable, RemoveLevelLate
atomicExecution, consistencyPruningEvents, constraintScope, earlyTerminationOK, increaseWeight, numberId, scope, tracequeueIndex| Constructor and Description |
|---|
VariableTrace(List<Var> vs)
It constructs trace daemon for variables vs
|
VariableTrace(Var v)
It constructs trace daemon for variable v
|
VariableTrace(Var[] vs)
It constructs trace daemon for variables vs
|
| Modifier and Type | Method and Description |
|---|---|
void |
consistency(Store store)
It is a (most probably incomplete) consistency function which removes the
values from variables domains.
|
int |
getDefaultConsistencyPruningEvent() |
void |
impose(Store store)
It imposes the constraint in a given store.
|
void |
increaseWeight()
It increases the weight of the variables in the constraint scope.
|
void |
queueVariable(int level,
Var var)
This is a function called to indicate which variable in a scope of
constraint has changed.
|
void |
removeConstraint()
It removes the constraint by removing this constraint from all variables.
|
void |
removeLevelLate(int level)
This function is called in case of the backtrack.
|
boolean |
satisfied() |
String |
toString()
It produces a string representation of a constraint state.
|
afc, arguments, cleanAfterFailure, decompose, getConsistencyPruningEvent, getGuideConstraint, getGuideValue, getGuideVariable, grounded, grounded, id, impose, imposeDecomposition, intArrayToString, long2int, numberArgs, requiresMonotonicity, setConsistencyPruningEvent, setConstraintScope, setScope, setScope, setScope, setScope, setScope, setWatchedVariableGrounded, supplyGuideFeedback, updateAFC, watchedVariableGroundedauxiliaryVariables, checkInput, checkInput, checkInputForDuplication, checkInputForDuplicationSkipSingletons, checkInputForNullness, checkInputForNullness, checkInputForNullness, derivative, getDubletonsSkipSingletons, imposeDecompositionpublic VariableTrace(Var v)
v - variable to be tracedpublic VariableTrace(Var[] vs)
vs - variables to be tracedpublic void impose(Store store)
Constraintimpose in class Constraintstore - the constraint store to which the constraint is imposed to.public void consistency(Store store)
Constraintconsistency in class Constraintstore - constraint store within which the constraint consistency is being checked.public int getDefaultConsistencyPruningEvent()
getDefaultConsistencyPruningEvent in class Constraintpublic void queueVariable(int level,
Var var)
ConstraintqueueVariable in class Constraintlevel - the level of the store at which the change has occurred.var - variable which has changed.public void removeLevelLate(int level)
RemoveLevelLateremoveLevelLate in interface RemoveLevelLatelevel - the level which is being removed.public void removeConstraint()
ConstraintremoveConstraint in class Constraintpublic boolean satisfied()
public String toString()
ConstrainttoString in class Constraintpublic void increaseWeight()
ConstraintincreaseWeight in class ConstraintCopyright © 2022. All rights reserved.