|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.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.SetNaryUnion
public final class SetNaryUnion
Field Summary | |
---|---|
protected IEnvironment |
environment
|
protected IStateInt[] |
occurCpt
|
protected int |
offset
|
protected SetVar[] |
setVars
|
protected static int |
UNION_SET_INDEX
|
protected SetVar |
unionSet
|
Fields inherited from class choco.kernel.solver.constraints.AbstractSConstraint |
---|
cIndices, constraintType, extensions, vars |
Fields inherited from class choco.kernel.solver.propagation.Propagator |
---|
active, constAwakeEvent, priority, propagationEngine |
Fields inherited from interface choco.kernel.solver.constraints.SConstraint |
---|
LOGGER |
Constructor Summary | |
---|---|
SetNaryUnion(SetVar[] vars,
IEnvironment environment)
|
Method Summary | |
---|---|
void |
awake()
Propagation: Propagating the constraint for the very first time until local consistency is reached. |
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. |
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.set.AbstractSetSConstraint |
---|
awakeOnEnvRemovals, awakeOnkerAdditions, getConstraintType |
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, constAwake, fail, getEvent, getPriority, isActive, setActive, setActiveSilently, setEntailed, setPassive, setPropagationEngine |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected SetVar[] setVars
protected SetVar unionSet
protected IStateInt[] occurCpt
protected int offset
protected static final int UNION_SET_INDEX
protected final IEnvironment environment
Constructor Detail |
---|
public SetNaryUnion(SetVar[] vars, IEnvironment environment)
Method Detail |
---|
public int getFilteredEventMask(int idx)
getFilteredEventMask
in class Propagator
public void awake() throws ContradictionException
Propagator
awake
in class Propagator
ContradictionException
- contradiction exceptionpublic void awakeOnKer(int varIdx, int x) throws ContradictionException
awakeOnKer
in interface SetPropagator
awakeOnKer
in class AbstractSetSConstraint
ContradictionException
public void awakeOnEnv(int varIdx, int x) throws ContradictionException
awakeOnEnv
in interface SetPropagator
awakeOnEnv
in class AbstractSetSConstraint
ContradictionException
public void awakeOnInst(int varIdx) throws ContradictionException
awakeOnInst
in interface SetPropagator
awakeOnInst
in class AbstractSetSConstraint
ContradictionException
public void propagate() throws ContradictionException
Propagator
propagate
in class Propagator
ContradictionException
- contradiction exceptionpublic boolean isSatisfied()
SConstraint
public boolean isConsistent()
Propagator
isConsistent
in class Propagator
public String pretty()
IPretty
pretty
in interface IPretty
pretty
in class AbstractSConstraint<SetVar>
public String toString()
toString
in class AbstractSConstraint<SetVar>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |