|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.AbstractEntity
choco.real.var.RealDomainImpl
public class RealDomainImpl
An implmentation of real variable domains using two stored floats for storing bounds.
Field Summary | |
---|---|
protected double |
currentInfPropagated
for the delta domain: current value of the inf (domain lower bound) when the bound started beeing propagated (just to check that it does not change during the propagation phase) |
protected double |
currentSupPropagated
for the delta domain: current value of the sup (domain upper bound) when the bound started beeing propagated (just to check that it does not change during the propagation phase) |
protected StoredFloat |
inf
|
protected StoredFloat |
sup
|
protected RealVar |
variable
|
Fields inherited from class choco.AbstractEntity |
---|
hook, problem |
Constructor Summary | |
---|---|
RealDomainImpl(RealVar v,
double a,
double b)
|
Method Summary | |
---|---|
void |
clearDeltaDomain()
|
void |
freezeDeltaDomain()
|
double |
getInf()
|
boolean |
getReleasedDeltaDomain()
|
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. |
java.lang.String |
pretty()
pretty printing of the object. |
boolean |
releaseDeltaDomain()
|
void |
silentlyAssign(RealInterval i)
|
Methods inherited from class choco.AbstractEntity |
---|
getProblem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface choco.Entity |
---|
getProblem |
Field Detail |
---|
protected double currentInfPropagated
protected double currentSupPropagated
protected StoredFloat inf
protected StoredFloat sup
protected RealVar variable
Constructor Detail |
---|
public RealDomainImpl(RealVar v, double a, double b)
Method Detail |
---|
public java.lang.String pretty()
Entity
pretty
in interface Entity
pretty
in class AbstractEntity
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 clearDeltaDomain()
clearDeltaDomain
in interface RealDomain
public boolean releaseDeltaDomain()
releaseDeltaDomain
in interface RealDomain
public void freezeDeltaDomain()
freezeDeltaDomain
in interface RealDomain
public boolean getReleasedDeltaDomain()
getReleasedDeltaDomain
in interface RealDomain
public void silentlyAssign(RealInterval i)
silentlyAssign
in interface RealDomain
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |