|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CompositeConstraint
An interface for all implementations of listeners using search variables.
| Method Summary | |
|---|---|
int |
getGlobalVarIndex(Constraint subConstraint,
int localVarIdx)
returns the global index of a variable within a constraint |
int |
getNbSubConstraints()
returns the number of sub-constraints that the composite constraint is made of |
Constraint |
getSubConstraint(int constIdx)
accessor to the sub-constraints from which the composite constraint is made of |
int |
getSubConstraintIdx(int varIdx)
return the index of the subconstraint where the i-th variable is referenced |
| Methods inherited from interface choco.Constraint |
|---|
clone, getConstraintIdx, getNbVars, getVar, getVarIdxInOpposite, isEquivalentTo, isSatisfied, opposite, setConstraintIndex, setVar |
| Methods inherited from interface choco.Entity |
|---|
getProblem, pretty |
| Methods inherited from interface choco.integer.var.IntVarEventListener |
|---|
awakeOnInf, awakeOnInst, awakeOnRem, awakeOnSup, getConstraintIdx, setConstraintIndex |
| Methods inherited from interface choco.prop.VarEventListener |
|---|
addListener, awakeOnVar, isActive, setActive, setPassive |
| Method Detail |
|---|
int getSubConstraintIdx(int varIdx)
varIdx - the overall index of the variable (among all variables of the combination
Constraint getSubConstraint(int constIdx)
constIdx - the index of the constraint
int getNbSubConstraints()
int getGlobalVarIndex(Constraint subConstraint,
int localVarIdx)
subConstraint - the subconstraint (a node in the composition tree)localVarIdx - the index of the variable, local to the subconstraint
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||