public class Increasing extends Constraint
Modifier and Type | Field and Description |
---|---|
protected List<Constraint> |
constraints |
atomicExecution, consistencyPruningEvents, constraintScope, earlyTerminationOK, increaseWeight, numberId, scope, trace
queueIndex
Constructor and Description |
---|
Increasing(IntVar[] x) |
Increasing(IntVar[] x,
boolean strict) |
Increasing(List<IntVar> x)
It constructs an increasing constraint.
|
Increasing(List<IntVar> x,
boolean strict) |
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.
|
List<Constraint> |
decompose(Store store)
It returns an array list of constraint which are used to decompose this
constraint.
|
int |
getDefaultConsistencyPruningEvent() |
void |
imposeDecomposition(Store store)
It imposes the decomposition of the given constraint in a given store.
|
String |
toString()
It produces a string representation of a constraint state.
|
afc, arguments, cleanAfterFailure, getConsistencyPruningEvent, getGuideConstraint, getGuideValue, getGuideVariable, grounded, grounded, id, impose, impose, increaseWeight, intArrayToString, long2int, numberArgs, queueVariable, removeConstraint, requiresMonotonicity, setConsistencyPruningEvent, setConstraintScope, setScope, setScope, setScope, setScope, setScope, setWatchedVariableGrounded, supplyGuideFeedback, updateAFC, watchedVariableGrounded
auxiliaryVariables, checkInput, checkInput, checkInputForDuplication, checkInputForDuplicationSkipSingletons, checkInputForNullness, checkInputForNullness, checkInputForNullness, derivative, getDubletonsSkipSingletons, imposeDecomposition
protected List<Constraint> constraints
public Increasing(IntVar[] x)
public Increasing(IntVar[] x, boolean strict)
public Increasing(List<IntVar> x)
x
- variables which must be in increasing order.public void consistency(Store store)
Constraint
consistency
in class Constraint
store
- constraint store within which the constraint consistency is being checked.public List<Constraint> decompose(Store store)
Constraint
decompose
in class Constraint
store
- the constraint store in which context the decomposition takes place.public void imposeDecomposition(Store store)
Constraint
imposeDecomposition
in class Constraint
store
- the constraint store to which the constraint is imposed to.public int getDefaultConsistencyPruningEvent()
getDefaultConsistencyPruningEvent
in class Constraint
public String toString()
Constraint
toString
in class Constraint
Copyright © 2022. All rights reserved.