choco.real.constraint
Interface MixedConstraint

All Superinterfaces:
java.lang.Cloneable, Constraint, Entity, java.util.EventListener, IntConstraint, IntVarEventListener, Propagator, RealListener, VarEventListener
All Known Subinterfaces:
PalmMixedConstraint
All Known Implementing Classes:
MixedCstElt, MixedEqXY, PalmMixedCstElt, PalmMixedEqXY

public interface MixedConstraint
extends Constraint, Propagator, RealListener, IntConstraint

An interface for mixed constraint : interger and flot variables.


Method Summary
 IntDomainVar getIntVar(int i)
          Returns the integer variable with index i.
 int getIntVarNb()
          Returns the number of integer variables.
 RealVar getRealVar(int i)
          Returns the real variable with index i.
 int getRealVarNb()
          Returns the number of real variables.
 
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.integer.IntConstraint
awakeOnBounds, awakeOnRemovals
 
Methods inherited from interface choco.prop.VarEventListener
addListener, isActive, setActive, setPassive
 
Methods inherited from interface choco.integer.var.IntVarEventListener
awakeOnInf, awakeOnInst, awakeOnRem, awakeOnSup, getConstraintIdx, setConstraintIndex
 
Methods inherited from interface choco.prop.VarEventListener
addListener, isActive, setActive, setPassive
 

Method Detail

getRealVar

RealVar getRealVar(int i)
Returns the real variable with index i.

Parameters:
i - the variable index
Returns:
the variable with index i

getRealVarNb

int getRealVarNb()
Returns the number of real variables. Note that here the number of variables should equal the number of real variables plus the number of integer variables.

Returns:
the number of real variables.

getIntVar

IntDomainVar getIntVar(int i)
Returns the integer variable with index i.

Specified by:
getIntVar in interface IntConstraint
Parameters:
i - the variable index
Returns:
the variable with index i

getIntVarNb

int getIntVarNb()
Returns the number of integer variables. Note that here the number of variables should equal the number of real variables plus the number of integer variables.

Returns:
the number of integer variables.