|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropagationEngine
An interface for all implementations of propagation engines.
Method Summary | |
---|---|
boolean |
checkCleanState()
checking that the propagation engine remains in a proper state |
void |
flushEvents()
Removes all pending events (used when interrupting a propagation because a contradiction has been raised) |
Entity |
getContradictionCause()
Retrieving the cause of the last contradiction. |
EventQueue |
getNextActiveEventQueue()
Returns the next active var queue to propagate some events. |
VarEventQueue |
getVarEventQueue()
|
void |
postAddKer(SetVar v,
int idx)
|
boolean |
postConstAwake(Propagator constraint,
boolean init)
|
void |
postInstInt(IntDomainVar v,
int idx)
|
void |
postInstSet(SetVar v,
int idx)
|
void |
postRemEnv(SetVar v,
int idx)
|
void |
postRemoveVal(IntDomainVar v,
int x,
int idx)
|
void |
postUpdateInf(IntDomainVar v,
int idx)
|
void |
postUpdateInf(RealVar v,
int idx)
|
void |
postUpdateSup(IntDomainVar v,
int idx)
|
void |
postUpdateSup(RealVar v,
int idx)
|
void |
raiseContradiction()
Raising a contradiction with no cause. |
void |
raiseContradiction(Entity cause)
Raising a contradiction with a cause. |
void |
registerEvent(ConstraintEvent event)
|
void |
setContradictionCause(Entity cause)
Recording the cause of the last contradiction. |
void |
setNoContradictionCause()
Recording that there was no known cause for the last contradiction. |
Methods inherited from interface choco.Entity |
---|
getProblem, pretty |
Method Detail |
---|
void raiseContradiction() throws ContradictionException
ContradictionException
void raiseContradiction(Entity cause) throws ContradictionException
ContradictionException
void setNoContradictionCause()
void setContradictionCause(Entity cause)
Entity getContradictionCause()
EventQueue getNextActiveEventQueue()
void flushEvents()
boolean checkCleanState()
void postUpdateInf(IntDomainVar v, int idx)
void postUpdateSup(IntDomainVar v, int idx)
void postInstInt(IntDomainVar v, int idx)
void postRemoveVal(IntDomainVar v, int x, int idx)
void postUpdateInf(RealVar v, int idx)
void postUpdateSup(RealVar v, int idx)
void postRemEnv(SetVar v, int idx)
void postAddKer(SetVar v, int idx)
void postInstSet(SetVar v, int idx)
boolean postConstAwake(Propagator constraint, boolean init)
void registerEvent(ConstraintEvent event)
VarEventQueue getVarEventQueue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |