|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.AbstractEntity
choco.AbstractConstraint
choco.integer.constraints.AbstractIntConstraint
public abstract class AbstractIntConstraint
An abstract class for all implementations of listeners over search variables.
Field Summary | |
---|---|
protected static java.util.logging.Logger |
logger
Reference to an object for logging trace statements related to constraints over integers (using the java.util.logging package) |
Fields inherited from class choco.AbstractConstraint |
---|
active, constAwakeEvent, hook, priority |
Fields inherited from class choco.AbstractEntity |
---|
problem |
Constructor Summary | |
---|---|
AbstractIntConstraint()
|
Method Summary | |
---|---|
void |
awakeOnBounds(int varIndex)
|
void |
awakeOnInf(int idx)
Default propagation on improved lower bound: propagation on domain revision. |
void |
awakeOnInst(int idx)
Default propagation on instantiation: full constraint re-propagation. |
void |
awakeOnRem(int idx,
int x)
Default propagation on one value removal: propagation on domain revision. |
void |
awakeOnRemovals(int idx,
IntIterator deltaDomain)
The default implementation of propagation when a variable has been modified consists in iterating all values that have been removed (the delta domain) and propagate them one after another, incrementally. |
void |
awakeOnSup(int idx)
Default propagation on improved upper bound: propagation on domain revision. |
int |
getSelfIndex()
returns the (global) index of the constraint among all constraints of the problem |
boolean |
isCompletelyInstantiated()
Checks if all the variables are instantiated. |
boolean |
isConsistent()
tests if the constraint is consistent with respect to the current state of domains |
Methods inherited from class choco.AbstractConstraint |
---|
addListener, awake, awakeOnVar, clone, connectVar, constAwake, delete, fail, getEvent, getPlugIn, getPriority, getProblem, getVarIdxInOpposite, isActive, isEntailed, 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.integer.IntConstraint |
---|
getIntVar |
Methods inherited from interface choco.Propagator |
---|
assignIndices, awake, awakeOnVar, constAwake, delete, getEvent, getPlugIn, getPriority, isEntailed, propagate |
Methods inherited from interface choco.prop.VarEventListener |
---|
addListener, isActive, setActive, setPassive |
Methods inherited from interface choco.integer.var.IntVarEventListener |
---|
getConstraintIdx, setConstraintIndex |
Methods inherited from interface choco.prop.VarEventListener |
---|
addListener, isActive, setActive, setPassive |
Field Detail |
---|
protected static java.util.logging.Logger logger
Constructor Detail |
---|
public AbstractIntConstraint()
Method Detail |
---|
public void awakeOnInf(int idx) throws ContradictionException
awakeOnInf
in interface IntVarEventListener
ContradictionException
public void awakeOnSup(int idx) throws ContradictionException
awakeOnSup
in interface IntVarEventListener
ContradictionException
public void awakeOnInst(int idx) throws ContradictionException
awakeOnInst
in interface IntVarEventListener
ContradictionException
public void awakeOnRem(int idx, int x) throws ContradictionException
awakeOnRem
in interface IntVarEventListener
ContradictionException
public void awakeOnRemovals(int idx, IntIterator deltaDomain) throws ContradictionException
awakeOnRemovals
in interface IntConstraint
idx
-
ContradictionException
public boolean isCompletelyInstantiated()
isCompletelyInstantiated
in interface Propagator
public void awakeOnBounds(int varIndex) throws ContradictionException
awakeOnBounds
in interface IntConstraint
ContradictionException
public boolean isConsistent()
isConsistent
in interface Propagator
public int getSelfIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |