|
|||||||||
| 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.Alldifferent
JaCoP.constraints.Alldiff
JaCoP.constraints.Circuit
public class Circuit
Circuit constraint assures that all variables build a Hamiltonian circuit. Value of every variable x[i] points to the next variable in the circuit. Variables create one circuit.
| 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.Alldifferent |
|---|
list |
| Fields inherited from class JaCoP.constraints.Constraint |
|---|
atomicExecution, consistencyPruningEvents, earlyTerminationOK, id, increaseWeight, numberArgs, numberId |
| Fields inherited from class JaCoP.constraints.DecomposedConstraint |
|---|
queueIndex |
| Constructor Summary | |
|---|---|
Circuit(java.util.ArrayList<IntVar> list)
It constructs a circuit constraint. |
|
Circuit(IntVar[] list)
It constructs a circuit constraint. |
|
| Method Summary | |
|---|---|
void |
consistency(Store store)
It is a (most probably incomplete) consistency function which removes the values from variables domains. |
int |
getConsistencyPruningEvent(Var var)
It retrieves the pruning event which causes reevaluation of the constraint. |
java.lang.String |
id()
It gives the id string of a constraint. |
void |
impose(Store store)
It imposes the constraint in a given store. |
void |
removeLevel(int level)
This function is called in case of the backtrack, so a constraint can clear the queue of changed variables which is no longer valid. |
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.Alldifferent |
|---|
arguments, increaseWeight, queueVariable, removeConstraint |
| 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 Circuit(IntVar[] list)
list - variables which must form a circuit.public Circuit(java.util.ArrayList<IntVar> list)
list - variables which must form a circuit.| Method Detail |
|---|
public void consistency(Store store)
Constraint
consistency in class Alldiffstore - constraint store within which the constraint consistency is being checked.public int getConsistencyPruningEvent(Var var)
Constraint
getConsistencyPruningEvent in class Alldiffvar - variable for which pruning event is retrieved
public void impose(Store store)
Constraint
impose in class Alldiffstore - the constraint store to which the constraint is imposed to.public boolean satisfied()
Constraint
satisfied in class Alldifferentpublic java.lang.String toString()
Constraint
toString in class Alldiffpublic void removeLevel(int level)
Constraint
removeLevel in class Constraintlevel - the level which is being removed.public java.lang.String id()
Constraint
id in class Alldiff
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||