|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.AbstractEntity
choco.real.exp.AbstractRealCompoundTerm
choco.real.exp.AbstractRealBinTerm
choco.real.exp.RealPlus
public class RealPlus
An expression modelling a real addition.
Field Summary |
---|
Fields inherited from class choco.real.exp.AbstractRealBinTerm |
---|
exp1, exp2 |
Fields inherited from class choco.real.exp.AbstractRealCompoundTerm |
---|
inf, sup |
Fields inherited from class choco.AbstractEntity |
---|
hook, problem |
Constructor Summary | |
---|---|
RealPlus(AbstractProblem pb,
RealExp exp1,
RealExp exp2)
Builds an addition expression for real constraint modelling. |
Method Summary | |
---|---|
void |
project()
Projects domain reduction on operands according to the expression domain itself (due to constraint restrictions). |
void |
tighten()
Tightens the expression to find the smallest interval containing values the expression can equal according to operand domains. |
Methods inherited from class choco.real.exp.AbstractRealBinTerm |
---|
collectVars, isolate, subExps |
Methods inherited from class choco.real.exp.AbstractRealCompoundTerm |
---|
getInf, getSup, intersect, intersect, toString |
Methods inherited from class choco.AbstractEntity |
---|
getProblem, pretty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RealPlus(AbstractProblem pb, RealExp exp1, RealExp exp2)
pb
- is the current problemexp1
- is the first expression operandexp2
- is the second expression operandMethod Detail |
---|
public void tighten()
public void project() throws ContradictionException
ContradictionException
- if a domain becomes empty
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |