choco.palm.real.exp
Class AbstractPalmRealUnTerm
java.lang.Object
choco.AbstractEntity
choco.real.exp.AbstractRealCompoundTerm
choco.real.exp.AbstractRealUnTerm
choco.palm.real.exp.AbstractPalmRealUnTerm
- All Implemented Interfaces:
- Entity, PalmRealInterval, RealExp, RealInterval
public abstract class AbstractPalmRealUnTerm
- extends AbstractRealUnTerm
- implements PalmRealInterval
Abstract implementation of a real binary term (like addition for instance).
Method Summary |
void |
intersect(RealInterval interval,
int index)
Updates the interval such that this interval is included in the interval parameter. |
void |
self_explain(int select,
ConstraintCollection e)
Explains the state of this expression (lower/upper bounds or all domain) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
explanationOnInf
protected Explanation explanationOnInf
- PalmExplanation of the last lower bound affectation.
explanationOnSup
protected Explanation explanationOnSup
- PalmExplanation of the last upper bound affectation.
AbstractPalmRealUnTerm
public AbstractPalmRealUnTerm(AbstractProblem pb,
RealExp exp1)
- Creates an abstract binary term with the two sub-expressions.
intersect
public void intersect(RealInterval interval,
int index)
throws ContradictionException
- Updates the interval such that this interval is included in the interval parameter.
- Specified by:
intersect
in interface RealInterval
- Overrides:
intersect
in class AbstractRealCompoundTerm
- Parameters:
interval
- The interval this expression should be included in.index
- The index of the constraint responsible of this reduction.
- Throws:
ContradictionException
self_explain
public void self_explain(int select,
ConstraintCollection e)
- Explains the state of this expression (lower/upper bounds or all domain)
- Parameters:
select
- Specifies which part of the domain should be explained.e
- Specifies the explanation in which these explaining constraints should be added.