choco.cp.solver.constraints.set
Class AllDisjoint
java.lang.Object
choco.kernel.solver.propagation.Propagator
choco.kernel.solver.constraints.AbstractSConstraint<SetVar>
choco.kernel.solver.constraints.set.AbstractSetSConstraint
choco.kernel.solver.constraints.set.AbstractLargeSetSConstraint
choco.cp.solver.constraints.set.AllDisjoint
- All Implemented Interfaces:
- IExtensionnable, IPretty, SConstraint<SetVar>, SetPropagator, Cloneable, EventListener
public final class AllDisjoint
- extends AbstractLargeSetSConstraint
Method Summary |
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. |
void |
filter(int idx)
|
int |
getFilteredEventMask(int idx)
|
boolean |
isConsistent()
tests if the constraint is consistent with respect to the current state of domains |
boolean |
isSatisfied()
Semantic:
Testing if the constraint is satisfied. |
String |
pretty()
pretty printing of the object. |
void |
propagate()
Propagation:
Propagating the constraint until local consistency is reached. |
String |
toString()
|
Methods inherited from class choco.kernel.solver.constraints.AbstractSConstraint |
addExtension, addListener, clone, getAbstractSConstraintExtensionNumber, getConstraintIdx, getExtension, getFineDegree, getNbVarNotInst, getNbVars, getVar, getVarQuick, isCompletelyInstantiated, isEntailed, opposite, setConstraintIndex, setExtension, setVar |
Methods inherited from class choco.kernel.solver.propagation.Propagator |
activate, awake, constAwake, fail, getEvent, getPriority, isActive, setActive, setActiveSilently, setEntailed, setPassive, setPropagationEngine |
AllDisjoint
public AllDisjoint(SetVar[] setvars)
getFilteredEventMask
public int getFilteredEventMask(int idx)
- Overrides:
getFilteredEventMask
in class Propagator
filter
public void filter(int idx)
throws ContradictionException
- Throws:
ContradictionException
awakeOnKer
public void awakeOnKer(int varIdx,
int x)
throws ContradictionException
- Description copied from interface:
SetPropagator
- Default propagation on kernel modification: propagation on adding a value to the kernel.
- Specified by:
awakeOnKer
in interface SetPropagator
- Overrides:
awakeOnKer
in class AbstractSetSConstraint
- Throws:
ContradictionException
awakeOnInst
public void awakeOnInst(int varIdx)
throws ContradictionException
- Description copied from interface:
SetPropagator
- Default propagation on instantiation.
- Specified by:
awakeOnInst
in interface SetPropagator
- Overrides:
awakeOnInst
in class AbstractSetSConstraint
- Throws:
ContradictionException
propagate
public void propagate()
throws ContradictionException
- Description copied from class:
Propagator
- Propagation:
Propagating the constraint until local consistency is reached.
- Specified by:
propagate
in class Propagator
- Throws:
ContradictionException
- contradiction exception
isSatisfied
public boolean isSatisfied()
- Description copied from interface:
SConstraint
- Semantic:
Testing if the constraint is satisfied.
Note that all variables involved in the constraint must be
instantiated when this method is called.
- Returns:
- true if the constraint is satisfied
isConsistent
public boolean isConsistent()
- Description copied from class:
Propagator
- tests if the constraint is consistent with respect to the current state of domains
- Specified by:
isConsistent
in class Propagator
- Returns:
- wether the constraint is consistent
pretty
public String pretty()
- Description copied from interface:
IPretty
- pretty printing of the object. This String is not constant and may depend on the context.
- Specified by:
pretty
in interface IPretty
- Overrides:
pretty
in class AbstractSConstraint<SetVar>
- Returns:
- a readable string representation of the object
toString
public String toString()
- Overrides:
toString
in class AbstractSConstraint<SetVar>
Copyright © 2012. All Rights Reserved.