|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJaCoP.constraints.DecomposedConstraint
JaCoP.constraints.Constraint
JaCoP.constraints.Diff
JaCoP.constraints.DisjointConditional
public class DisjointConditional
DisjointConditional constraint assures that any two rectangles from a vector of rectangles does not overlap in at least one direction. The execption from this rule is specified on the list of tuple [recti, rectj, C], where recti and rectj are integers representing given rectangles positions on the list of rectangles (starting from 1) and C is FDV 0..1. When C=1 then rectnagles must not overlap otherwise the overlaping is not checked.
| Field Summary | |
|---|---|
JaCoP.constraints.ExclusiveList |
exclusionList
It specifies what rectangles can conditionally overlap. |
static java.lang.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. |
| Fields inherited from class JaCoP.constraints.Diff |
|---|
doProfile, rectangles |
| Fields inherited from class JaCoP.constraints.Constraint |
|---|
atomicExecution, consistencyPruningEvents, earlyTerminationOK, id, increaseWeight, numberArgs, numberId |
| Fields inherited from class JaCoP.constraints.DecomposedConstraint |
|---|
queueIndex |
| Constructor Summary | |
|---|---|
DisjointConditional(java.util.ArrayList<? extends IntVar> o1,
java.util.ArrayList<? extends IntVar> o2,
java.util.ArrayList<? extends IntVar> l1,
java.util.ArrayList<? extends IntVar> l2,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? extends IntVar> exceptionCondition)
It constructs a disjoint conditional constraint. |
|
DisjointConditional(java.util.ArrayList<? extends IntVar> o1,
java.util.ArrayList<? extends IntVar> o2,
java.util.ArrayList<? extends IntVar> l1,
java.util.ArrayList<? extends IntVar> l2,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? extends IntVar> exceptionCondition,
boolean profile)
It constructs a disjoint conditional constraint. |
|
DisjointConditional(java.util.ArrayList<java.util.ArrayList<? extends IntVar>> rectangles,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? extends IntVar> exceptionCondition)
It creates Disjoint conditional constraint. |
|
DisjointConditional(java.util.ArrayList<java.util.ArrayList<? extends IntVar>> rectangles,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? extends IntVar> exceptionCondition,
boolean profile)
It creates Disjoint conditional constraint. |
|
DisjointConditional(IntVar[][] rectangles,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? extends IntVar> exceptionCondition)
It creates Disjoint conditional constraint. |
|
DisjointConditional(IntVar[][] rectangles,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? extends IntVar> exceptionCondition,
boolean profile)
It creates Disjoint conditional constraint. |
|
DisjointConditional(IntVar[] o1,
IntVar[] o2,
IntVar[] l1,
IntVar[] l2,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? extends IntVar> exceptionCondition)
It constructs a disjoint conditional constraint. |
|
DisjointConditional(IntVar[] o1,
IntVar[] o2,
IntVar[] l1,
IntVar[] l2,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? extends IntVar> exceptionCondition,
boolean profile)
It constructs a disjoint conditional constraint. |
|
DisjointConditional(Rectangle[] rectangles,
JaCoP.constraints.ExclusiveList exclusionList,
boolean doProfile)
It specifies a diff constraint. |
|
| Method Summary | |
|---|---|
void |
impose(Store store)
It imposes the constraint in a given store. |
boolean |
satisfied()
It checks if the constraint is satisfied. |
java.lang.String |
toString()
It produces a string representation of a constraint state. |
| Methods inherited from class JaCoP.constraints.Diff |
|---|
arguments, consistency, getConsistencyPruningEvent, id, increaseWeight, queueVariable, removeConstraint, removeLevel |
| Methods inherited from class JaCoP.constraints.Constraint |
|---|
cleanAfterFailure, decompose, getGuideConstraint, getGuideValue, getGuideVariable, impose, imposeDecomposition, numberArgs, removeLevelLate, requiresMonotonicity, setConsistencyPruningEvent, supplyGuideFeedback |
| Methods inherited from class JaCoP.constraints.DecomposedConstraint |
|---|
auxiliaryVariables, imposeDecomposition |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public JaCoP.constraints.ExclusiveList exclusionList
public static java.lang.String[] xmlAttributes
| Constructor Detail |
|---|
public DisjointConditional(Rectangle[] rectangles,
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(java.util.ArrayList<java.util.ArrayList<? extends IntVar>> rectangles,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? 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(java.util.ArrayList<java.util.ArrayList<? extends IntVar>> rectangles,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? 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(java.util.ArrayList<? extends IntVar> o1,
java.util.ArrayList<? extends IntVar> o2,
java.util.ArrayList<? extends IntVar> l1,
java.util.ArrayList<? extends IntVar> l2,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? 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(java.util.ArrayList<? extends IntVar> o1,
java.util.ArrayList<? extends IntVar> o2,
java.util.ArrayList<? extends IntVar> l1,
java.util.ArrayList<? extends IntVar> l2,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? 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[] o1,
IntVar[] o2,
IntVar[] l1,
IntVar[] l2,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? 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(IntVar[] o1,
IntVar[] o2,
IntVar[] l1,
IntVar[] l2,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? 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 - exceptionCondition - profile - it specifies if the profiles are being used and computed within that constraint.
public DisjointConditional(IntVar[][] rectangles,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? extends IntVar> exceptionCondition)
rectangles - the rectangles within a constraint.exceptionIndices - exceptionCondition -
public DisjointConditional(IntVar[][] rectangles,
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> exceptionIndices,
java.util.ArrayList<? extends IntVar> exceptionCondition,
boolean profile)
rectangles - the rectangles within a constraint.exceptionIndices - exceptionCondition - profile - it specifies if the profiles are being computed and used within that constraint.| Method Detail |
|---|
public void impose(Store store)
Constraint
impose in class Diffstore - the constraint store to which the constraint is imposed to.public boolean satisfied()
Constraint
satisfied in class Diffpublic java.lang.String toString()
Constraint
toString in class Diff
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||