|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.real.exp.RealIntervalConstant
public class RealIntervalConstant
A constant real interval.
Field Summary | |
---|---|
protected double |
inf
|
protected double |
sup
|
Constructor Summary | |
---|---|
RealIntervalConstant(double inf,
double sup)
|
|
RealIntervalConstant(RealInterval interval)
|
Method Summary | |
---|---|
java.util.Set |
collectVars(java.util.Set s)
Collects recursively all the variable this expression depends on. |
double |
getInf()
|
double |
getSup()
|
void |
intersect(RealInterval interval)
Modifies the bounds for intersecting with the specified interval. |
void |
intersect(RealInterval interval,
int index)
Modifies the bounds for intersecting with the specified interval. |
boolean |
isolate(RealVar var,
java.util.List wx,
java.util.List wox)
Isolates sub terms depending or not on a variable x. |
java.lang.String |
pretty()
|
void |
project()
Projects computed bounds to the sub expressions. |
java.util.List |
subExps(java.util.List l)
Computes recursively the sub expressions (avoids to tighten and project recursively). |
void |
tighten()
Computes the narrowest bounds with respect to sub terms. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final double inf
protected final double sup
Constructor Detail |
---|
public RealIntervalConstant(RealInterval interval)
public RealIntervalConstant(double inf, double sup)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public double getInf()
getInf
in interface RealInterval
public double getSup()
getSup
in interface RealInterval
public void intersect(RealInterval interval) throws ContradictionException
RealInterval
intersect
in interface RealInterval
ContradictionException
public void intersect(RealInterval interval, int index) throws ContradictionException
RealInterval
intersect
in interface RealInterval
index
- of the constraint responsible to this withdraw
ContradictionException
public void tighten()
RealExp
tighten
in interface RealExp
public void project()
RealExp
project
in interface RealExp
public java.lang.String pretty()
public java.util.List subExps(java.util.List l)
RealExp
subExps
in interface RealExp
public java.util.Set collectVars(java.util.Set s)
RealExp
collectVars
in interface RealExp
public boolean isolate(RealVar var, java.util.List wx, java.util.List wox)
RealExp
isolate
in interface RealExp
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |