choco.palm.real.constraints
Class AbstractPalmUnRealConstraint
java.lang.Object
choco.AbstractEntity
choco.AbstractConstraint
choco.real.constraint.AbstractUnRealConstraint
choco.palm.real.constraints.AbstractPalmUnRealConstraint
- All Implemented Interfaces:
- Constraint, Entity, PalmVarListener, PalmRealVarListener, VarEventListener, Propagator, RealConstraint, RealListener, java.lang.Cloneable, java.util.EventListener
- Direct Known Subclasses:
- AbstractPalmSplit
public abstract class AbstractPalmUnRealConstraint
- extends AbstractUnRealConstraint
- implements RealConstraint, PalmRealVarListener
Abstract implementation of an unary constraint on one real variable.
Methods inherited from class choco.AbstractConstraint |
addListener, awake, awakeOnVar, clone, connectVar, constAwake, delete, fail, getEvent, getPlugIn, getPriority, getProblem, getVarIdxInOpposite, isActive, isEntailed, isEquivalentTo, opposite, setActive, setEntailed, setPassive, setPlugIn, substituteVar |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface choco.Propagator |
assignIndices, awake, awakeOnVar, constAwake, delete, getEvent, getPlugIn, getPriority, isCompletelyInstantiated, isConsistent, isEntailed, propagate |
AbstractPalmUnRealConstraint
public AbstractPalmUnRealConstraint()
updateDataStructuresOnConstraint
public void updateDataStructuresOnConstraint(int idx,
int select,
int newValue,
int oldValue)
- Synchronous update events are not handled by default.
- Specified by:
updateDataStructuresOnConstraint
in interface PalmVarListener
- Parameters:
idx
- the index of the modified variableselect
- the modificatino on this variablenewValue
- the new value for the involved propertyoldValue
- the old value for the involved property
updateDataStructuresOnRestoreConstraint
public void updateDataStructuresOnRestoreConstraint(int idx,
int select,
int newValue,
int oldValue)
- Synchronous restoration events are not handled by default.
- Specified by:
updateDataStructuresOnRestoreConstraint
in interface PalmVarListener
- Parameters:
idx
- the index of the modified variableselect
- the modificatino on this variablenewValue
- the new value for the involved propertyoldValue
- the old value for the involved property