|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.prop.VarEvent
choco.integer.var.IntVarEvent
choco.palm.dbt.prop.PalmIntVarEvent
public class PalmIntVarEvent
Field Summary | |
---|---|
boolean |
isPopping
This boolean was before in the queue |
int |
oldEventType
|
static int |
RESTINF
Constant value associated to the inf bound restoration prop. |
static int |
RESTSUP
Constant value associated to the sup bound restoration prop. |
static int |
RESTVAL
Constant value associated to the value restoration prop. |
Fields inherited from class choco.integer.var.IntVarEvent |
---|
BOUNDSbitvector, DECSUP, DECSUPbitvector, INCINF, INCINFbitvector, INSTINT, INSTINTbitvector, REMVAL, REMVALbitvector |
Fields inherited from class choco.prop.VarEvent |
---|
cause, EMPTYEVENT, eventType, logger, modifiedVar, NOCAUSE, NOEVENT |
Fields inherited from interface choco.prop.PropagationEvent |
---|
POPPING |
Constructor Summary | |
---|---|
PalmIntVarEvent(Var var)
Creates an prop for the specified variable. |
Method Summary | |
---|---|
int |
getPriority()
Computes the priority of the prop. |
IntIterator |
getRestoreIterator()
Returns an iterator on the chain containing all the restored values. |
boolean |
isPopping()
|
boolean |
propagateEvent()
Generic propagation method. |
void |
propagateRestInfEvent(int evtCause)
Propagates the lower bound restoration event. |
void |
propagateRestSupEvent(int evtCause)
Propagates the upper bound restoration event. |
void |
propagateRestValEvent(int evtCause)
Propagates a value restoration event. |
void |
reset()
If a contradiction occurs when the event is handled, the event is reinitialized. |
void |
restoreVariableExplanation()
Updates explanations for the variable: when bounds are completely restored, the unrelevant explanations are removed. |
void |
setPopping(boolean b)
|
Methods inherited from class choco.integer.var.IntVarEvent |
---|
clear, freeze, getEventIterator, getEventType, getIntVar, getReleased, propagateBoundsEvent, propagateInfEvent, propagateInstEvent, propagateRemovalsEvent, propagateSupEvent, release, setEventType, toString |
Methods inherited from class choco.prop.VarEvent |
---|
getCause, getModifiedObject, getModifiedVar, getProblem, isActive, isEnqueued, recordEventTypeAndCause |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int oldEventType
public boolean isPopping
public static final int RESTINF
public static final int RESTSUP
public static final int RESTVAL
Constructor Detail |
---|
public PalmIntVarEvent(Var var)
var
- The variable this prop is reponsible for.Method Detail |
---|
public int getPriority()
getPriority
in interface IPrioritizable
getPriority
in class VarEvent
public boolean propagateEvent() throws ContradictionException
super.propagateEvent()
.
propagateEvent
in interface PropagationEvent
propagateEvent
in class IntVarEvent
ContradictionException
public void propagateRestInfEvent(int evtCause) throws ContradictionException
ContradictionException
public void propagateRestSupEvent(int evtCause) throws ContradictionException
ContradictionException
public void propagateRestValEvent(int evtCause) throws ContradictionException
ContradictionException
public void restoreVariableExplanation()
restoreVariableExplanation
in interface PalmVarEvent
public IntIterator getRestoreIterator()
public void reset()
reset
in interface PalmVarEvent
public boolean isPopping()
isPopping
in interface PalmVarEvent
public void setPopping(boolean b)
setPopping
in interface PalmVarEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |