|
|||||||||
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
public class IntVarEvent
Field Summary | |
---|---|
static int |
BOUNDSbitvector
Constants for the eventType bitvector: value of bitvector for updates to both bound of IntVars |
static int |
DECSUP
Constants for the eventType bitvector: index of bit for updates to upper bound of IntVars |
static int |
DECSUPbitvector
Constants for the eventType bitvector: value of bitvector for updates to upper bound of IntVars |
static int |
INCINF
Constants for the eventType bitvector: index of bit for updates to lower bound of IntVars |
static int |
INCINFbitvector
Constants for the eventType bitvector: value of bitvector for updates to lower bound of IntVars |
static int |
INSTINT
Constants for the eventType bitvector: index of bit for instantiations of IntVars |
static int |
INSTINTbitvector
Constants for the eventType bitvector: value of bitvector for instantiations of IntVars |
static int |
REMVAL
Constants for the eventType bitvector: index of bit for holes in the domain of IntVars |
static int |
REMVALbitvector
Constants for the eventType bitvector: value of bitvector for holes in the domain of IntVars |
Fields inherited from class choco.prop.VarEvent |
---|
cause, EMPTYEVENT, eventType, logger, modifiedVar, NOCAUSE, NOEVENT |
Fields inherited from interface choco.prop.PropagationEvent |
---|
POPPING |
Constructor Summary | |
---|---|
IntVarEvent(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. |
IntIterator |
getEventIterator()
Returns an iterator over the set of removed values |
int |
getEventType()
Retrieves the event type |
IntDomainVarImpl |
getIntVar()
|
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 |
propagateInstEvent(int evtCause)
Propagates the instantiation event |
void |
propagateRemovalsEvent(int evtCause)
Propagates a set of value removals |
void |
propagateSupEvent(int evtCause)
Propagates the update to the upper bound |
protected boolean |
release()
the event had been "frozen", (since the call to freeze), while it was handled by the propagation engine: This meant that the meaning of the event could not be changed: it represented a static set of value removals, during propagation. |
void |
setEventType(int evtType)
records the event type |
java.lang.String |
toString()
useful for debugging |
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 REMVAL
public static final int INSTINT
public static final int INCINFbitvector
public static final int DECSUPbitvector
public static final int BOUNDSbitvector
public static final int REMVALbitvector
public static final int INSTINTbitvector
Constructor Detail |
---|
public IntVarEvent(AbstractVar var)
Method Detail |
---|
public IntDomainVarImpl getIntVar()
public java.lang.String toString()
toString
in class java.lang.Object
public int getEventType()
public void setEventType(int evtType)
public void clear()
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 IntIterator getEventIterator()
public boolean propagateEvent() throws ContradictionException
propagateEvent
in interface PropagationEvent
propagateEvent
in class VarEvent
ContradictionException
public void propagateInstEvent(int evtCause) throws ContradictionException
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 void propagateRemovalsEvent(int evtCause) throws ContradictionException
ContradictionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |