choco.real.exp
Class AbstractRealCompoundTerm
java.lang.Object
choco.AbstractEntity
choco.real.exp.AbstractRealCompoundTerm
- All Implemented Interfaces:
- Entity, RealExp, RealInterval
- Direct Known Subclasses:
- AbstractRealBinTerm, AbstractRealUnTerm
public abstract class AbstractRealCompoundTerm
- extends AbstractEntity
- implements RealExp
A compound expression depending on other terms.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
inf
protected StoredFloat inf
sup
protected StoredFloat sup
AbstractRealCompoundTerm
public AbstractRealCompoundTerm(AbstractProblem pb)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getInf
public double getInf()
- Specified by:
getInf
in interface RealInterval
- Returns:
- the lower bound.
getSup
public double getSup()
- Specified by:
getSup
in interface RealInterval
- Returns:
- the upper bound.
intersect
public void intersect(RealInterval interval)
throws ContradictionException
- Description copied from interface:
RealInterval
- Modifies the bounds for intersecting with the specified interval.
- Specified by:
intersect
in interface RealInterval
- Throws:
ContradictionException
intersect
public void intersect(RealInterval interval,
int index)
throws ContradictionException
- Description copied from interface:
RealInterval
- Modifies the bounds for intersecting with the specified interval.
- Specified by:
intersect
in interface RealInterval
index
- of the constraint responsible to this withdraw
- Throws:
ContradictionException