public class Alldiff extends Alldifferent
| Modifier and Type | Field and Description |
|---|---|
protected IntVar[] |
listAlldiff |
static String[] |
xmlAttributes
It specifies the arguments required to be saved by an XML format as well as
the constructor being called to recreate an object from an XML format.
|
grounded, list, positionMappingatomicExecution, consistencyPruningEvents, earlyTerminationOK, id, increaseWeight, numberArgs, numberId, tracequeueIndex| Constructor and Description |
|---|
Alldiff(ArrayList<? extends IntVar> variables)
It constructs the alldiff constraint for the supplied variable.
|
Alldiff(IntVar[] variables)
It constructs the alldiff constraint for the supplied variable.
|
| 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 |
getConsistencyPruningEvent(Var var)
It retrieves the pruning event which causes reevaluation of the
constraint.
|
void |
impose(Store store)
It imposes the constraint in a given store.
|
String |
toString()
It produces a string representation of a constraint state.
|
arguments, increaseWeight, queueVariable, removeConstraint, satisfiedcleanAfterFailure, decompose, getGuideConstraint, getGuideValue, getGuideVariable, id, impose, imposeDecomposition, numberArgs, removeLevel, removeLevelLate, requiresMonotonicity, setConsistencyPruningEvent, supplyGuideFeedbackauxiliaryVariables, derivative, imposeDecompositionprotected IntVar[] listAlldiff
public static String[] xmlAttributes
public Alldiff(IntVar[] variables)
variables - variables which are constrained to take different values.public int getConsistencyPruningEvent(Var var)
ConstraintgetConsistencyPruningEvent in class Alldifferentvar - variable for which pruning event is retrievedpublic void impose(Store store)
Constraintimpose in class Alldifferentstore - the constraint store to which the constraint is imposed to.public void consistency(Store store)
Constraintconsistency in class Alldifferentstore - constraint store within which the constraint consistency is being checked.public String toString()
ConstrainttoString in class AlldifferentCopyright © 2016. All rights reserved.