public class DisjointConditional extends Diff
Modifier and Type | Field and Description |
---|---|
org.jacop.constraints.ExclusiveList |
exclusionList
It specifies what rectangles can conditionally overlap.
|
dimIthMinComparator, rectangles
atomicExecution, consistencyPruningEvents, constraintScope, earlyTerminationOK, increaseWeight, numberId, scope
queueIndex
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, removeLevel
afc, 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, watchedVariableGrounded
auxiliaryVariables, checkInput, checkInput, checkInputForDuplication, checkInputForDuplicationSkipSingletons, checkInputForNullness, checkInputForNullness, checkInputForNullness, derivative, getDubletonsSkipSingletons, imposeDecomposition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isStateful
public 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)
Constraint
impose
in class Constraint
store
- the constraint store to which the constraint is imposed to.public boolean satisfied()
SatisfiedPresent
Implementations 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 SatisfiedPresent
satisfied
in class Diff
public String toString()
Constraint
Copyright © 2022. All rights reserved.