|
|||||||||
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.AbstractSetConstraint
choco.set.constraint.AbstractUnSetConstraint
choco.set.constraint.MemberX
public class MemberX
Enforce a value to belong to a setVar
Field Summary | |
---|---|
protected int |
cste
|
Fields inherited from class choco.set.constraint.AbstractUnSetConstraint |
---|
cIdx0, v0 |
Fields inherited from class choco.set.constraint.AbstractSetConstraint |
---|
logger |
Fields inherited from class choco.AbstractConstraint |
---|
active, constAwakeEvent, hook, priority |
Fields inherited from class choco.AbstractEntity |
---|
problem |
Constructor Summary | |
---|---|
MemberX(SetVar v,
int val)
|
Method Summary | |
---|---|
void |
awake()
Default initial propagation: full constraint re-propagation. |
void |
awakeOnEnv(int varIdx,
int x)
Default propagation on enveloppe modification: propagation on removing a value from the enveloppe. |
void |
awakeOnInst(int varIdx)
Default propagation on instantiation. |
void |
awakeOnKer(int varIdx,
int x)
Default propagation on kernel modification: propagation on adding a value to the kernel. |
java.lang.Object |
clone()
returns a copy of the constraint. |
boolean |
isConsistent()
tests if the constraint is consistent with respect to the current state of domains |
java.lang.Boolean |
isEntailed()
Checks if the listeners must be checked or must fail. |
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.AbstractUnSetConstraint |
---|
assignIndices, getConstraintIdx, getNbVars, getSetVar, getVar, isCompletelyInstantiated, setConstraintIndex, setVar |
Methods inherited from class choco.set.constraint.AbstractSetConstraint |
---|
awakeOnEnvRemovals, awakeOnkerAdditions, getSelfIndex |
Methods inherited from class choco.AbstractConstraint |
---|
addListener, awakeOnVar, 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 |
---|
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 |
Field Detail |
---|
protected int cste
Constructor Detail |
---|
public MemberX(SetVar v, int val)
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Constraint
clone
in interface Constraint
clone
in class AbstractUnSetConstraint
java.lang.CloneNotSupportedException
public void awake() throws ContradictionException
AbstractConstraint
awake
in interface Propagator
awake
in class AbstractConstraint
ContradictionException
public void propagate() throws ContradictionException
Propagator
ContradictionException
public void awakeOnInst(int varIdx) throws ContradictionException
SetVarEventListener
awakeOnInst
in interface SetVarEventListener
awakeOnInst
in class AbstractSetConstraint
ContradictionException
public void awakeOnEnv(int varIdx, int x) throws ContradictionException
SetVarEventListener
awakeOnEnv
in interface SetVarEventListener
awakeOnEnv
in class AbstractSetConstraint
ContradictionException
public void awakeOnKer(int varIdx, int x) throws ContradictionException
SetVarEventListener
awakeOnKer
in interface SetVarEventListener
awakeOnKer
in class AbstractSetConstraint
ContradictionException
public boolean isSatisfied()
Constraint
public boolean isConsistent()
Propagator
public java.lang.Boolean isEntailed()
isEntailed
in interface Propagator
isEntailed
in class AbstractConstraint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |