|
|||||||||
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
public class RealVarEvent
An event for real interval variable modifications.
Field Summary | |
---|---|
static int |
BOUNDSEVENT
|
static int |
DECSUP
|
static int |
EMPTYEVENT
|
static int |
INCINF
|
static int |
INFEVENT
|
static int |
SUPEVENT
|
Fields inherited from class choco.prop.VarEvent |
---|
cause, eventType, logger, modifiedVar, NOCAUSE, NOEVENT |
Fields inherited from interface choco.prop.PropagationEvent |
---|
POPPING |
Constructor Summary | |
---|---|
RealVarEvent(AbstractVar var)
|
Method Summary | |
---|---|
void |
clear()
Clears the var: delegates to the basic events. |
protected void |
freeze()
freezes the state of the "delta domain": the set of values that are considered for removal from the domain. |
int |
getEventType()
Retrieves the event type |
boolean |
getReleased()
|
void |
propagateBoundsEvent(int evtCause)
Propagates the update to the domain lower and upper bounds |
boolean |
propagateEvent()
Propagates the event through calls to the propagation engine. |
void |
propagateInfEvent(int evtCause)
Propagates the update to the lower bound |
void |
propagateSupEvent(int evtCause)
Propagates the update to the upper bound |
protected boolean |
release()
|
java.lang.String |
toString()
|
Methods inherited from class choco.prop.VarEvent |
---|
getCause, getModifiedObject, getModifiedVar, getPriority, getProblem, isActive, isEnqueued, recordEventTypeAndCause |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int INCINF
public static final int DECSUP
public static final int EMPTYEVENT
public static final int BOUNDSEVENT
public static final int INFEVENT
public static final int SUPEVENT
Constructor Detail |
---|
public RealVarEvent(AbstractVar var)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public void clear()
VarEvent
clear
in interface PropagationEvent
clear
in class VarEvent
protected boolean release()
release
in class VarEvent
protected void freeze()
VarEvent
freeze
in class VarEvent
public boolean getReleased()
public boolean propagateEvent() throws ContradictionException
VarEvent
propagateEvent
in interface PropagationEvent
propagateEvent
in class VarEvent
ContradictionException
public void propagateSupEvent(int evtCause) throws ContradictionException
ContradictionException
public void propagateInfEvent(int evtCause) throws ContradictionException
ContradictionException
public void propagateBoundsEvent(int evtCause) throws ContradictionException
ContradictionException
public int getEventType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |