|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchoco.AbstractEntity
choco.AbstractConstraint
choco.set.constraint.AbstractMixedConstraint
choco.set.constraint.AbstractBinSetIntConstraint
choco.set.constraint.NotMemberXY
public class NotMemberXY
Ensure that an int variable does not belong to a set variable
| Field Summary |
|---|
| Fields inherited from class choco.set.constraint.AbstractBinSetIntConstraint |
|---|
cIdx0, cIdx1, v0, v1 |
| Fields inherited from class choco.AbstractConstraint |
|---|
active, constAwakeEvent, hook, priority |
| Fields inherited from class choco.AbstractEntity |
|---|
problem |
| Constructor Summary | |
|---|---|
NotMemberXY(SetVar set,
IntDomainVar iv)
|
|
| Method Summary | |
|---|---|
void |
awakeOnEnv(int varIdx,
int x)
Default propagation on enveloppe modification: propagation on removing a value from the enveloppe. |
void |
awakeOnInf(int idx)
Default propagation on improved lower bound: propagation on domain revision. |
void |
awakeOnInst(int varIdx)
Default propagation on instantiation: full constraint re-propagation. |
void |
awakeOnKer(int varIdx,
int x)
Default propagation on kernel modification: propagation on adding a value to the kernel. |
void |
awakeOnRem(int idx,
int x)
Default propagation on one value removal: propagation on domain revision. |
void |
awakeOnSup(int idx)
Default propagation on improved upper bound: propagation on domain revision. |
void |
filter()
if only one value out of the kernel, then this value can be removed from the enveloppe |
boolean |
isConsistent()
tests if the constraint is consistent with respect to the current state of domains |
java.lang.Boolean |
isEntailed()
Checks whether the constraint is definitely satisfied, no matter what further restrictions occur to the domain of its variables. |
boolean |
isSatisfied()
Semantic: Testing if the constraint is satisfied. |
void |
propagate()
Propagation: Propagating the constraint until local consistency is reached. |
| Methods inherited from class choco.set.constraint.AbstractBinSetIntConstraint |
|---|
assignIndices, getConstraintIdx, getIntVar, getNbVars, getSetVar, getVar, isCompletelyInstantiated, setConstraintIndex, setVar |
| Methods inherited from class choco.set.constraint.AbstractMixedConstraint |
|---|
awakeOnBounds, awakeOnEnvRemovals, awakeOnkerAdditions, awakeOnRemovals, getSelfIndex |
| Methods inherited from class choco.AbstractConstraint |
|---|
addListener, awake, awakeOnVar, clone, connectVar, constAwake, delete, fail, getEvent, getPlugIn, getPriority, getProblem, getVarIdxInOpposite, isActive, isEquivalentTo, opposite, setActive, setEntailed, setPassive, setPlugIn, substituteVar |
| Methods inherited from class choco.AbstractEntity |
|---|
pretty |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface choco.Propagator |
|---|
awake, awakeOnVar, constAwake, delete, getEvent, getPlugIn, getPriority |
| Methods inherited from interface choco.prop.VarEventListener |
|---|
addListener, isActive, setActive, setPassive |
| Methods inherited from interface choco.prop.VarEventListener |
|---|
addListener, isActive, setActive, setPassive |
| Methods inherited from interface choco.Propagator |
|---|
awake, awakeOnVar, constAwake, delete, getEvent, getPlugIn, getPriority |
| Methods inherited from interface choco.prop.VarEventListener |
|---|
addListener, isActive, setActive, setPassive |
| Methods inherited from interface choco.prop.VarEventListener |
|---|
addListener, isActive, setActive, setPassive |
| Constructor Detail |
|---|
public NotMemberXY(SetVar set,
IntDomainVar iv)
| Method Detail |
|---|
public void filter()
throws ContradictionException
ContradictionException
public void awakeOnInf(int idx)
throws ContradictionException
AbstractMixedConstraint
awakeOnInf in interface IntVarEventListenerawakeOnInf in class AbstractMixedConstraintContradictionException
public void awakeOnSup(int idx)
throws ContradictionException
AbstractMixedConstraint
awakeOnSup in interface IntVarEventListenerawakeOnSup in class AbstractMixedConstraintContradictionException
public void awakeOnRem(int idx,
int x)
throws ContradictionException
AbstractMixedConstraint
awakeOnRem in interface IntVarEventListenerawakeOnRem in class AbstractMixedConstraintContradictionException
public void awakeOnKer(int varIdx,
int x)
throws ContradictionException
SetVarEventListener
awakeOnKer in interface SetVarEventListenerawakeOnKer in class AbstractMixedConstraintContradictionException
public void awakeOnEnv(int varIdx,
int x)
throws ContradictionException
SetVarEventListener
awakeOnEnv in interface SetVarEventListenerawakeOnEnv in class AbstractMixedConstraintContradictionException
public void awakeOnInst(int varIdx)
throws ContradictionException
IntVarEventListener
awakeOnInst in interface IntVarEventListenerawakeOnInst in interface SetVarEventListenerawakeOnInst in class AbstractMixedConstraintContradictionException
public void propagate()
throws ContradictionException
Propagator
ContradictionExceptionpublic boolean isSatisfied()
Constraint
public boolean isConsistent()
Propagator
public java.lang.Boolean isEntailed()
Propagator
isEntailed in interface PropagatorisEntailed in class AbstractConstraint
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||