|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Propagator
An interface for all implementations of listeners.
Method Summary | |
---|---|
int |
assignIndices(AbstractCompositeConstraint root,
int i,
boolean dynamicAddition)
performs the global numbering (wrt root) of the variables contained in the subtree this, starting from i |
void |
awake()
Propagation: Propagating the constraint for the very first time until local consistency is reached. |
void |
awakeOnVar(int idx)
Propagation: Propagating the constraint when the domain of a variable has been modified (shrunk) since the last consistent state. |
void |
constAwake(boolean isInitialPropagation)
Forces a propagation of the constraint. |
void |
delete()
Removes a constraint from the network. |
PropagationEvent |
getEvent()
Returns the constraint awake var associated with this constraint. |
ConstraintPlugin |
getPlugIn()
Returns the constraint plugin. |
int |
getPriority()
Propagation: Accessing the priority level of the queue handling the propagation of the constraint. |
boolean |
isCompletelyInstantiated()
Utility: Testing if all variables involved in the constraint are instantiated. |
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. |
void |
propagate()
Propagation: Propagating the constraint until local consistency is reached. |
Methods inherited from interface choco.prop.VarEventListener |
---|
addListener, isActive, setActive, setPassive |
Methods inherited from interface choco.Constraint |
---|
clone, getConstraintIdx, getNbVars, getVar, getVarIdxInOpposite, isEquivalentTo, isSatisfied, opposite, setConstraintIndex, setVar |
Methods inherited from interface choco.Entity |
---|
getProblem, pretty |
Method Detail |
---|
ConstraintPlugin getPlugIn()
boolean isCompletelyInstantiated()
void constAwake(boolean isInitialPropagation)
void awake() throws ContradictionException
ContradictionException
void awakeOnVar(int idx) throws ContradictionException
awakeOnVar
in interface VarEventListener
ContradictionException
void propagate() throws ContradictionException
ContradictionException
int getPriority()
void delete()
PropagationEvent getEvent()
java.lang.Boolean isEntailed()
boolean isConsistent()
int assignIndices(AbstractCompositeConstraint root, int i, boolean dynamicAddition)
root
- the overall root constraint, for which the variables are numberedi
- the index that will assigned to the first variable in the subtree this (originally 0)dynamicAddition
- whether the addition is undone automatically on backtracking
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |