public class DisjointConditional extends Diff
| Modifier and Type | Field and Description |
|---|---|
org.jacop.constraints.ExclusiveList |
exclusionList
It specifies what rectangles can conditionally overlap.
|
dimIthMinComparator, rectanglesatomicExecution, consistencyPruningEvents, constraintScope, earlyTerminationOK, increaseWeight, numberId, scopequeueIndex| Constructor and Description |
|---|
DisjointConditional(IntVar[][] rectangles,
List<List<Integer>> exceptionIndices,
List<? extends IntVar> exceptionCondition)
It creates Disjoint conditional constraint.
|
DisjointConditional(IntVar[][] rectangles,
List<List<Integer>> exceptionIndices,
List<? extends IntVar> exceptionCondition,
boolean profile)
It creates Disjoint conditional constraint.
|
DisjointConditional(IntVar[] origin1,
IntVar[] origin2,
IntVar[] length1,
IntVar[] length2,
List<List<Integer>> exceptionIndices,
List<? extends IntVar> exceptionCondition)
It constructs a disjoint conditional constraint.
|
DisjointConditional(IntVar[] o1,
IntVar[] o2,
IntVar[] l1,
IntVar[] l2,
List<List<Integer>> exceptionIndices,
List<? extends IntVar> exceptionCondition,
boolean profile)
It constructs a disjoint conditional constraint.
|
DisjointConditional(List<? extends IntVar> o1,
List<? extends IntVar> o2,
List<? extends IntVar> l1,
List<? extends IntVar> l2,
List<List<Integer>> exceptionIndices,
List<? extends IntVar> exceptionCondition)
It constructs a disjoint conditional constraint.
|
DisjointConditional(List<? extends IntVar> o1,
List<? extends IntVar> o2,
List<? extends IntVar> l1,
List<? extends IntVar> l2,
List<List<Integer>> exceptionIndices,
List<? extends IntVar> exceptionCondition,
boolean profile)
It constructs a disjoint conditional constraint.
|
DisjointConditional(List<List<? extends IntVar>> rectangles,
List<List<Integer>> exceptionIndices,
List<? extends IntVar> exceptionCondition)
It creates Disjoint conditional constraint.
|
DisjointConditional(List<List<? extends IntVar>> rectangles,
List<List<Integer>> exceptionIndices,
List<? extends IntVar> exceptionCondition,
boolean profile)
It creates Disjoint conditional constraint.
|
DisjointConditional(Rectangle[] rectangles,
org.jacop.constraints.ExclusiveList exclusionList,
boolean doProfile)
It specifies a diff constraint.
|
| Modifier and Type | Method and Description |
|---|---|
void |
impose(Store store)
It imposes the constraint in a given store.
|
boolean |
satisfied()
It checks if the constraint is satisfied.
|
String |
toString()
It produces a string representation of a constraint state.
|
consistency, getDefaultConsistencyPruningEvent, queueVariable, removeLevelafc, arguments, cleanAfterFailure, decompose, getConsistencyPruningEvent, getGuideConstraint, getGuideValue, getGuideVariable, grounded, grounded, id, impose, imposeDecomposition, increaseWeight, intArrayToString, long2int, numberArgs, removeConstraint, requiresMonotonicity, setConsistencyPruningEvent, setConstraintScope, setScope, setScope, setScope, setScope, setScope, setWatchedVariableGrounded, supplyGuideFeedback, updateAFC, watchedVariableGroundedauxiliaryVariables, checkInput, checkInput, checkInputForDuplication, checkInputForDuplicationSkipSingletons, checkInputForNullness, checkInputForNullness, checkInputForNullness, derivative, getDubletonsSkipSingletons, imposeDecompositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisStatefulpublic org.jacop.constraints.ExclusiveList exclusionList
public DisjointConditional(Rectangle[] rectangles, org.jacop.constraints.ExclusiveList exclusionList, boolean doProfile)
rectangles - list of rectangles which can not overlap in at least one dimension.exclusionList - it is a list of exclusive items. Each item consists of two ints and a variable.doProfile - should the constraint compute and use the profile functionality.public DisjointConditional(List<List<? extends IntVar>> rectangles, List<List<Integer>> exceptionIndices, List<? extends IntVar> exceptionCondition)
rectangles - the rectangles within a constraint.exceptionIndices - a list of pairs of conditionally overlaping rectangles.exceptionCondition - a variable specifying if a corresponding pair is nonoverlapping.public DisjointConditional(List<List<? extends IntVar>> rectangles, List<List<Integer>> exceptionIndices, List<? extends IntVar> exceptionCondition, boolean profile)
rectangles - the rectangles within a constraint.exceptionIndices - it specifies a list of pairs, where each pair specifies two rectangles which conditionally overlap.exceptionCondition - a variable specifying if a corresponding pair is nonoverlapping.profile - it specifies if the profiles are used and computed within the constraint.public DisjointConditional(List<? extends IntVar> o1, List<? extends IntVar> o2, List<? extends IntVar> l1, List<? extends IntVar> l2, List<List<Integer>> exceptionIndices, List<? extends IntVar> exceptionCondition)
o1 - variables specifying the origin in the first dimension.o2 - variables specifying the origin in the second dimension.l1 - variables specifying the length in the first dimension.l2 - variables specifying the length in the second dimension.exceptionIndices - it specifies a list of pairs, where each pair specifies two rectangles which conditionally overlap.exceptionCondition - a variable specifying if a corresponding pair is nonoverlapping.public DisjointConditional(List<? extends IntVar> o1, List<? extends IntVar> o2, List<? extends IntVar> l1, List<? extends IntVar> l2, List<List<Integer>> exceptionIndices, List<? extends IntVar> exceptionCondition, boolean profile)
o1 - variables specifying the origin in the first dimension.o2 - variables specifying the origin in the second dimension.l1 - variables specifying the length in the first dimension.l2 - variables specifying the length in the second dimension.exceptionIndices - it specifies a list of pairs, where each pair specifies two rectangles which conditionally overlap.exceptionCondition - a variable specifying if a corresponding pair is nonoverlapping.profile - it specifies if the profiles are being computed and used within a constraint.public DisjointConditional(IntVar[] origin1, IntVar[] origin2, IntVar[] length1, IntVar[] length2, List<List<Integer>> exceptionIndices, List<? extends IntVar> exceptionCondition)
origin1 - variables specifying the origin in the first dimension.origin2 - variables specifying the origin in the second dimension.length1 - variables specifying the length in the first dimension.length2 - variables specifying the length in the second dimension.exceptionIndices - it specifies a list of pairs, where each pair specifies two rectangles which conditionally overlap.exceptionCondition - a variable specifying if a corresponding pair is nonoverlapping.public DisjointConditional(IntVar[] o1, IntVar[] o2, IntVar[] l1, IntVar[] l2, List<List<Integer>> exceptionIndices, List<? extends IntVar> exceptionCondition, boolean profile)
o1 - variables specifying the origin in the first dimension.o2 - variables specifying the origin in the second dimension.l1 - variables specifying the length in the first dimension.l2 - variables specifying the length in the second dimension.exceptionIndices - list of rectangles that may not be consideredexceptionCondition - conditions for rectangles that may not be consideredprofile - it specifies if the profiles are being used and computed within that constraint.public DisjointConditional(IntVar[][] rectangles, List<List<Integer>> exceptionIndices, List<? extends IntVar> exceptionCondition)
rectangles - the rectangles within a constraint.exceptionIndices - list of rectangles that may not be consideredexceptionCondition - conditions for rectangles that may not be consideredpublic DisjointConditional(IntVar[][] rectangles, List<List<Integer>> exceptionIndices, List<? extends IntVar> exceptionCondition, boolean profile)
rectangles - the rectangles within a constraint.exceptionIndices - list of rectangles that may not be consideredexceptionCondition - conditions for rectangles that may not be consideredprofile - it specifies if the profiles are being computed and used within that constraint.public void impose(Store store)
Constraintimpose in class Constraintstore - the constraint store to which the constraint is imposed to.public boolean satisfied()
SatisfiedPresentImplementations of this interface for constraints that are not PrimitiveConstraint may require constraint imposition and consistency check as a requirement to work correctly.
satisfied in interface SatisfiedPresentsatisfied in class Diffpublic String toString()
ConstraintCopyright © 2022. All rights reserved.