choco.palm.real.constraints
Class AbstractPalmUnRealConstraint

java.lang.Object
  extended by choco.AbstractEntity
      extended by choco.AbstractConstraint
          extended by choco.real.constraint.AbstractUnRealConstraint
              extended by 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.


Field Summary
 
Fields inherited from class choco.real.constraint.AbstractUnRealConstraint
cIdx0, v0
 
Fields inherited from class choco.AbstractConstraint
active, constAwakeEvent, hook, priority
 
Fields inherited from class choco.AbstractEntity
problem
 
Constructor Summary
AbstractPalmUnRealConstraint()
           
 
Method Summary
 void updateDataStructuresOnConstraint(int idx, int select, int newValue, int oldValue)
          Synchronous update events are not handled by default.
 void updateDataStructuresOnRestoreConstraint(int idx, int select, int newValue, int oldValue)
          Synchronous restoration events are not handled by default.
 
Methods inherited from class choco.real.constraint.AbstractUnRealConstraint
assignIndices, getConstraintIdx, getNbVars, getRealVar, getRealVarNb, getVar, isCompletelyInstantiated, setConstraintIndex, setVar
 
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 choco.AbstractEntity
pretty
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface choco.real.constraint.RealConstraint
getRealVar, getRealVarNb
 
Methods inherited from interface choco.Propagator
assignIndices, awake, awakeOnVar, constAwake, delete, getEvent, getPlugIn, getPriority, isCompletelyInstantiated, isConsistent, isEntailed, propagate
 
Methods inherited from interface choco.prop.VarEventListener
addListener, isActive, setActive, setPassive
 
Methods inherited from interface choco.real.constraint.RealListener
awakeOnInf, awakeOnSup, getConstraintIdx, setConstraintIndex
 
Methods inherited from interface choco.prop.VarEventListener
addListener, isActive, setActive, setPassive
 
Methods inherited from interface choco.palm.real.PalmRealVarListener
awakeOnRestoreInf, awakeOnRestoreSup
 
Methods inherited from interface choco.palm.PalmVarListener
getConstraintIdx, setConstraintIndex
 
Methods inherited from interface choco.prop.VarEventListener
addListener, isActive, setActive, setPassive
 
Methods inherited from interface choco.real.constraint.RealListener
awakeOnInf, awakeOnSup, getConstraintIdx, setConstraintIndex
 
Methods inherited from interface choco.prop.VarEventListener
addListener, isActive, setActive, setPassive
 

Constructor Detail

AbstractPalmUnRealConstraint

public AbstractPalmUnRealConstraint()
Method Detail

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 variable
select - the modificatino on this variable
newValue - the new value for the involved property
oldValue - 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 variable
select - the modificatino on this variable
newValue - the new value for the involved property
oldValue - the old value for the involved property