choco.cp.solver.constraints.real
Class MixedEqXY

java.lang.Object
  extended by choco.kernel.solver.propagation.Propagator
      extended by choco.kernel.solver.constraints.AbstractSConstraint<Var>
          extended by choco.kernel.solver.constraints.real.AbstractMixedSRealIntSConstraint
              extended by choco.kernel.solver.constraints.real.AbstractBinRealIntSConstraint
                  extended by choco.cp.solver.constraints.real.MixedEqXY
All Implemented Interfaces:
IExtensionnable, IPretty, SConstraint<Var>, IntPropagator, RealPropagator, Cloneable, EventListener

public final class MixedEqXY
extends AbstractBinRealIntSConstraint


Field Summary
 
Fields inherited from class choco.kernel.solver.constraints.real.AbstractBinRealIntSConstraint
v0, v1
 
Fields inherited from class choco.kernel.solver.constraints.AbstractSConstraint
cIndices, constraintType, extensions, vars
 
Fields inherited from class choco.kernel.solver.propagation.Propagator
active, constAwakeEvent, priority, propagationEngine
 
Fields inherited from interface choco.kernel.solver.constraints.SConstraint
LOGGER
 
Constructor Summary
MixedEqXY(RealVar v0, IntDomainVar v1)
           
 
Method Summary
 void awakeOnBounds(int varIdx)
           
 void awakeOnInf(int idx)
          Default propagation on improved lower bound: propagation on domain revision.
 void awakeOnInst(int varIdx)
          Default propagation on instantiation: full constraint re-propagation.
 void awakeOnRem(int varIdx, int val)
          Default propagation on one value removal: propagation on domain revision.
 void awakeOnRemovals(int varIdx, DisposableIntIterator deltaDomain)
           
 void awakeOnSup(int idx)
          Default propagation on improved upper bound: propagation on domain revision.
 Object clone()
          Clone the constraint
 boolean isConsistent()
          tests if the constraint is consistent with respect to the current state of domains
 boolean isSatisfied()
          Semantic: Testing if the constraint is satisfied.
 void propagate()
          Propagation: Propagating the constraint until local consistency is reached.
protected  void updateIInf()
           
protected  void updateISup()
           
protected  void updateReal()
           
 
Methods inherited from class choco.kernel.solver.constraints.real.AbstractBinRealIntSConstraint
getConstraintType, getIntVar, getIntVarNb, getRealVar, getRealVarNb, isSatisfied
 
Methods inherited from class choco.kernel.solver.constraints.AbstractSConstraint
addExtension, addListener, getAbstractSConstraintExtensionNumber, getConstraintIdx, getExtension, getFineDegree, getNbVarNotInst, getNbVars, getVar, getVarQuick, isCompletelyInstantiated, isEntailed, opposite, pretty, setConstraintIndex, setExtension, setVar, toString
 
Methods inherited from class choco.kernel.solver.propagation.Propagator
activate, awake, constAwake, fail, getEvent, getFilteredEventMask, getPriority, isActive, setActive, setActiveSilently, setEntailed, setPassive, setPropagationEngine
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MixedEqXY

public MixedEqXY(RealVar v0,
                 IntDomainVar v1)
Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Description copied from class: AbstractSConstraint
Clone the constraint

Overrides:
clone in class AbstractBinRealIntSConstraint
Returns:
the clone of the constraint
Throws:
CloneNotSupportedException - Clone not supported exception

isConsistent

public boolean isConsistent()
Description copied from class: Propagator
tests if the constraint is consistent with respect to the current state of domains

Specified by:
isConsistent in class Propagator
Returns:
wether the constraint is consistent

isSatisfied

public boolean isSatisfied()
Description copied from interface: SConstraint
Semantic: Testing if the constraint is satisfied. Note that all variables involved in the constraint must be instantiated when this method is called.

Returns:
true if the constraint is satisfied

propagate

public void propagate()
               throws ContradictionException
Description copied from class: Propagator
Propagation: Propagating the constraint until local consistency is reached.

Specified by:
propagate in class Propagator
Throws:
ContradictionException - contradiction exception

awakeOnInf

public void awakeOnInf(int idx)
                throws ContradictionException
Description copied from interface: IntPropagator
Default propagation on improved lower bound: propagation on domain revision.

Throws:
ContradictionException

awakeOnSup

public void awakeOnSup(int idx)
                throws ContradictionException
Description copied from interface: IntPropagator
Default propagation on improved upper bound: propagation on domain revision.

Throws:
ContradictionException

awakeOnInst

public void awakeOnInst(int varIdx)
                 throws ContradictionException
Description copied from interface: IntPropagator
Default propagation on instantiation: full constraint re-propagation.

Throws:
ContradictionException

awakeOnRem

public void awakeOnRem(int varIdx,
                       int val)
                throws ContradictionException
Description copied from interface: IntPropagator
Default propagation on one value removal: propagation on domain revision.

Throws:
ContradictionException

awakeOnRemovals

public void awakeOnRemovals(int varIdx,
                            DisposableIntIterator deltaDomain)
                     throws ContradictionException
Throws:
ContradictionException

awakeOnBounds

public void awakeOnBounds(int varIdx)
                   throws ContradictionException
Throws:
ContradictionException

updateIInf

protected void updateIInf()
                   throws ContradictionException
Throws:
ContradictionException

updateISup

protected void updateISup()
                   throws ContradictionException
Throws:
ContradictionException

updateReal

protected void updateReal()
                   throws ContradictionException
Throws:
ContradictionException


Copyright © 2012. All Rights Reserved.