|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.prop.VarEvent
choco.real.var.RealVarEvent
choco.palm.real.PalmRealVarEvent
public class PalmRealVarEvent
Implements an event for real variable of PaLM.
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. |
Fields inherited from class choco.real.var.RealVarEvent |
---|
BOUNDSEVENT, DECSUP, EMPTYEVENT, INCINF, INFEVENT, SUPEVENT |
Fields inherited from class choco.prop.VarEvent |
---|
cause, eventType, logger, modifiedVar, NOCAUSE, NOEVENT |
Fields inherited from interface choco.prop.PropagationEvent |
---|
POPPING |
Constructor Summary | |
---|---|
PalmRealVarEvent(AbstractVar var)
Creates new event for the specified variable (should be a Palm real variable). |
Method Summary | |
---|---|
int |
getPriority()
Computes the priority of the prop. |
boolean |
isPopping()
States if this event is currently being popped. |
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 |
reset()
Resets this event if interrupted during execution. |
void |
restoreVariableExplanation()
Updates variable states after restoration (like explanation or decision constraints for instance). |
void |
setPopping(boolean b)
Specifies if this event is being popped. |
Methods inherited from class choco.real.var.RealVarEvent |
---|
clear, freeze, getEventType, getReleased, propagateBoundsEvent, propagateInfEvent, propagateSupEvent, release, 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
Constructor Detail |
---|
public PalmRealVarEvent(AbstractVar var)
var
- 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 RealVarEvent
ContradictionException
public void propagateRestInfEvent(int evtCause) throws ContradictionException
ContradictionException
public void propagateRestSupEvent(int evtCause) throws ContradictionException
ContradictionException
public void restoreVariableExplanation()
restoreVariableExplanation
in interface PalmVarEvent
public boolean isPopping()
isPopping
in interface PalmVarEvent
public void setPopping(boolean b)
setPopping
in interface PalmVarEvent
public void reset()
reset
in interface PalmVarEvent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |