| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchoco.AbstractEntity
choco.integer.var.AbstractIntDomain
public abstract class AbstractIntDomain
| Nested Class Summary | |
|---|---|
| protected  class | AbstractIntDomain.IntDomainIterator | 
| Field Summary | |
|---|---|
| protected  int | currentInfPropagatedfor 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  int | currentSupPropagatedfor 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 static java.util.logging.Logger | loggerReference to an object for logging trace statements related to domains of search variables (using the java.util.logging package) | 
| protected  IntDomainVarImpl | variableThe involved variable. | 
| Fields inherited from class choco.AbstractEntity | 
|---|
| hook, problem | 
| Constructor Summary | |
|---|---|
| AbstractIntDomain() | |
| Method Summary | |
|---|---|
| protected  boolean | _instantiate(int x)Instantiating a variable to an search value. | 
| protected  boolean | _removeVal(int x)Removing a value from the domain of a variable. | 
| protected  boolean | _updateInf(int x)Improving the lower bound. | 
| protected  boolean | _updateSup(int x)Improving the upper bound. | 
|  void | clearDeltaDomain()cleans the data structure implementing the delta domain | 
|  void | freezeDeltaDomain()The delta domain container is "frozen" (it can no longer accept new value removals) so that this set of values can be iterated as such | 
|  IntIterator | getIterator()Returns an getIterator. | 
|  boolean | getReleasedDeltaDomain()checks whether the delta domain has indeed been released (ie: chechks that no domain updates are pending) | 
|  boolean | instantiate(int x,
            int idx)Internal var: instantiation of the variable caused by its i-th constraint Returns a boolean indicating whether the call indeed added new information. | 
|  boolean | releaseDeltaDomain()after an iteration over the delta domain, the delta domain is reopened again. | 
|  boolean | removeInterval(int a,
               int b,
               int idx)Internal var: remove an interval (a sequence of consecutive values) from the domain of a variable caused by its i-th constraint. | 
|  boolean | removeVal(int x,
          int idx)Internal var: update (value removal) on the domain of a variable caused by its i-th constraint. | 
|  boolean | updateInf(int x,
          int idx)Internal var: update on the variable lower bound caused by its i-th constraint. | 
|  boolean | updateSup(int x,
          int idx)Internal var: update on the variable upper bound caused by its i-th constraint. | 
| Methods inherited from class choco.AbstractEntity | 
|---|
| getProblem, pretty | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface choco.integer.var.IntDomain | 
|---|
| contains, getDeltaIterator, getInf, getNextValue, getPrevValue, getRandomValue, getSize, getSup, hasNextValue, hasPrevValue, isEnumerated, remove, restrict, updateInf, updateSup | 
| Methods inherited from interface choco.Entity | 
|---|
| getProblem, pretty | 
| Field Detail | 
|---|
protected static java.util.logging.Logger logger
protected IntDomainVarImpl variable
protected int currentInfPropagated
protected int currentSupPropagated
| Constructor Detail | 
|---|
public AbstractIntDomain()
| Method Detail | 
|---|
public IntIterator getIterator()
getIterator in interface IntDomain
public boolean updateSup(int x,
                         int idx)
                  throws ContradictionException
x - The new upper boundidx - The index of the constraint (among all constraints linked to
            the variable) responsible for the update
ContradictionException
public boolean updateInf(int x,
                         int idx)
                  throws ContradictionException
x - The new lower bound.idx - The index of the constraint (among all constraints linked to
            the variable) responsible for the update.
ContradictionException
public boolean removeVal(int x,
                         int idx)
                  throws ContradictionException
x - The removed valueidx - The index of the constraint (among all constraints linked to the variable) responsible for the update
ContradictionException
public boolean removeInterval(int a,
                              int b,
                              int idx)
                       throws ContradictionException
a - the first removed valueb - the last removed valueidx - the index of the constraint (among all constraints linked to the variable)
            responsible for the update
ContradictionException
public boolean instantiate(int x,
                           int idx)
                    throws ContradictionException
x - the new upper boundidx - the index of the constraint (among all constraints linked to the
            variable) responsible for the update
ContradictionException
protected boolean _instantiate(int x)
                        throws ContradictionException
ContradictionException
protected boolean _updateInf(int x)
                      throws ContradictionException
ContradictionException
protected boolean _updateSup(int x)
                      throws ContradictionException
ContradictionException
protected boolean _removeVal(int x)
                      throws ContradictionException
ContradictionExceptionpublic void freezeDeltaDomain()
IntDomain
freezeDeltaDomain in interface IntDomainpublic boolean releaseDeltaDomain()
IntDomain
releaseDeltaDomain in interface IntDomainpublic void clearDeltaDomain()
IntDomain
clearDeltaDomain in interface IntDomainpublic boolean getReleasedDeltaDomain()
IntDomain
getReleasedDeltaDomain in interface IntDomain| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||