|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchoco.AbstractEntity
choco.prop.AbstractPropagationEngine
choco.prop.ChocEngine
choco.palm.dbt.prop.PalmEngine
public class PalmEngine
| Field Summary |
|---|
| Fields inherited from class choco.prop.ChocEngine |
|---|
NB_CONST_QUEUES, nbPendingInitConstAwakeEvent, varEventQueue |
| Fields inherited from class choco.prop.AbstractPropagationEngine |
|---|
contradictionCause |
| Fields inherited from class choco.AbstractEntity |
|---|
hook, problem |
| Constructor Summary | |
|---|---|
PalmEngine(AbstractProblem pb)
Constructs an engine with the specified problem. |
|
| Method Summary | |
|---|---|
boolean |
isContradictory()
Checks if a contradiction has been reached. |
void |
postRestoreInf(PalmIntVar v)
Posts an inf bound restoration prop. |
void |
postRestoreInf(PalmRealVar v)
Posts an inf bound restoration prop. |
void |
postRestoreSup(PalmIntVar v)
Posts a sup bound restoration prop. |
void |
postRestoreSup(PalmRealVar v)
Posts a sup bound restoration prop. |
void |
postRestoreVal(PalmIntVar v,
int value)
Posts value restoration. |
void |
raisePalmContradiction(Var var)
Raises a Palm Contradiction caused by the specified variable. |
void |
raisePalmFakeContradiction(PalmExplanation expl)
Raises a fake Contradiction with the specified explain. |
void |
raiseSystemContradiction()
Raise a System Contradiction, that is a Choco Contradiction, that means that no solution can be found anymore without removing constraint with a level upper that PalmProblem.MAX_RELAX_LEVEL. |
void |
remove(Constraint[] constraints)
Removes several constraints. |
void |
remove(Propagator constraint)
Removes properly a constraint: the constraint is deactivated, and all depending filtering decisions are undone. |
void |
resetDummyVariable()
Resets the dummy variable. |
void |
resetEvents()
Resets all the events in the queue (no cause, and in the queue (no popping events anymore)). |
void |
setContradictory(boolean c)
Sets if a contradiciton has been reached. |
| Methods inherited from class choco.prop.AbstractPropagationEngine |
|---|
getContradictionCause, setContradictionCause, setNoContradictionCause |
| Methods inherited from class choco.AbstractEntity |
|---|
getProblem, pretty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface choco.Entity |
|---|
getProblem, pretty |
| Constructor Detail |
|---|
public PalmEngine(AbstractProblem pb)
pb - The problem to associate with this engine.| Method Detail |
|---|
public void resetEvents()
public void postRestoreInf(PalmIntVar v)
v - The variable on which the inf bound is restored.public void postRestoreSup(PalmIntVar v)
v - The variable on which the sup bound is restored.public void postRestoreInf(PalmRealVar v)
v - The variable on which the inf bound is restored.public void postRestoreSup(PalmRealVar v)
v - The variable on which the sup bound is restored.
public void postRestoreVal(PalmIntVar v,
int value)
v - The variable that should be modified.value - The value restored.
public void raisePalmContradiction(Var var)
throws ContradictionException
var - The variable which is responsible of the contradiction.
ContradictionException
public void raisePalmFakeContradiction(PalmExplanation expl)
throws ContradictionException
expl - The explain of the contradiction.
ContradictionException
public void raiseSystemContradiction()
throws ContradictionException
PalmProblem.MAX_RELAX_LEVEL.
ContradictionExceptionpublic void remove(Propagator constraint)
constraint - The constraint to be removed.public void remove(Constraint[] constraints)
constraints - An array with all the constraints to remove.public boolean isContradictory()
public void setContradictory(boolean c)
c - The value to set.public void resetDummyVariable()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||