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.
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.