|
||||||||||
| 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.Disjoint
public class Disjoint
Disjoint constraint assures that any two rectangles from a vector of rectangles does not overlap in at least one direction.
| Field Summary | |
|---|---|
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 | |
|---|---|
Disjoint(java.util.ArrayList<? extends java.util.ArrayList<? extends IntVar>> rectangles)
It creates a diff2 constraint. |
|
Disjoint(java.util.ArrayList<? extends java.util.ArrayList<? extends IntVar>> rectangles,
boolean profile)
It creates a diff2 constraint. |
|
Disjoint(java.util.ArrayList<? extends IntVar> o1,
java.util.ArrayList<? extends IntVar> o2,
java.util.ArrayList<? extends IntVar> l1,
java.util.ArrayList<? extends IntVar> l2)
It creates a diff2 constraint. |
|
Disjoint(java.util.ArrayList<IntVar> o1,
java.util.ArrayList<IntVar> o2,
java.util.ArrayList<IntVar> l1,
java.util.ArrayList<IntVar> l2,
boolean profile)
It creates a diff2 constraint. |
|
Disjoint(IntVar[][] rectangles,
boolean profile)
It creates a diff2 constraint. |
|
Disjoint(IntVar[] o1,
IntVar[] o2,
IntVar[] l1,
IntVar[] l2)
It creates a diff2 constraint. |
|
Disjoint(IntVar[] o1,
IntVar[] o2,
IntVar[] l1,
IntVar[] l2,
boolean profile)
It creates a diff2 constraint. |
|
Disjoint(Rectangle[] rectangles,
boolean doProfile)
|
|
Disjoint(Store store,
IntVar[][] rectangles)
It creates a diff2 constraint. |
|
| Method Summary | |
|---|---|
java.lang.String |
id()
It gives the id string of a constraint. |
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, 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 static java.lang.String[] xmlAttributes
| Constructor Detail |
|---|
public Disjoint(Rectangle[] rectangles,
boolean doProfile)
rectangles - a list of rectangles.doProfile - should profile be computed and used.
public Disjoint(java.util.ArrayList<IntVar> o1,
java.util.ArrayList<IntVar> o2,
java.util.ArrayList<IntVar> l1,
java.util.ArrayList<IntVar> l2,
boolean profile)
o1 - list of variables denoting the origin in the first dimension.o2 - list of variables denoting the origin in the second dimension.l1 - list of variables denoting the length in the first dimension.l2 - list of variables denoting the length in the second dimension.profile - specifies if the profile should be computed.public Disjoint(java.util.ArrayList<? extends java.util.ArrayList<? extends IntVar>> rectangles)
rectangles - list of rectangles with origins and lengths in both dimensions.
public Disjoint(java.util.ArrayList<? extends java.util.ArrayList<? extends IntVar>> rectangles,
boolean profile)
rectangles - list of rectangles with origins and lengths in both dimensions.profile - specifies if the profile is computed and used.
public Disjoint(java.util.ArrayList<? extends IntVar> o1,
java.util.ArrayList<? extends IntVar> o2,
java.util.ArrayList<? extends IntVar> l1,
java.util.ArrayList<? extends IntVar> l2)
o1 - list of variables denoting the origin in the first dimension.o2 - list of variables denoting the origin in the second dimension.l1 - list of variables denoting the length in the first dimension.l2 - list of variables denoting the length in the second dimension.
public Disjoint(IntVar[] o1,
IntVar[] o2,
IntVar[] l1,
IntVar[] l2)
o1 - list of variables denoting the origin in the first dimension.o2 - list of variables denoting the origin in the second dimension.l1 - list of variables denoting the length in the first dimension.l2 - list of variables denoting the length in the second dimension.
public Disjoint(IntVar[] o1,
IntVar[] o2,
IntVar[] l1,
IntVar[] l2,
boolean profile)
o1 - list of variables denoting the origin in the first dimension.o2 - list of variables denoting the origin in the second dimension.l1 - list of variables denoting the length in the first dimension.l2 - list of variables denoting the length in the second dimension.profile - specifies if the profile should be computed.
public Disjoint(Store store,
IntVar[][] rectangles)
store - constraint store in which the constraint is created.rectangles - list of rectangles with origins and lengths in both dimensions.
public Disjoint(IntVar[][] rectangles,
boolean profile)
rectangles - list of rectangles with origins and lengths in both dimensions.profile - specifies if the profile is computed and used.| 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 id()
Constraint
id 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 | |||||||||