#include <Retraction.h>
Inheritance diagram for Retraction:

Public Member Functions | |
| Retraction (const wstring &name, Problem &problem) | |
| const wstring & | name () const |
| Return the retraction's name. | |
| const Problem & | problem () const |
| Return the problem to solve. | |
| Problem & | problem () |
| Return the problem to solve. | |
| const Decomposition & | decomposition () const |
| Return the decomposition to which the retraction reports. | |
| Decomposition & | decomposition () |
| Return the decomposition to which the retraction reports. | |
| const Filter & | filter () const |
| Return the monitored filter. | |
| Filter & | filter () |
| Return the monitored filter. | |
| virtual void | init () |
| virtual void | done () |
| virtual void | start () |
| virtual void | stop () |
| virtual void | recordDomainChange (Variable &victim, Variable &aggressor)=0 |
| virtual void | recordFailure (Constraint &constraint, Variable &victim, Variable &aggressor)=0 |
| virtual void | unifyConflictSets (int) |
| virtual void | eraseConflictSets (int) |
| virtual int | computeJump (bool chronological=true) const =0 |
| virtual wostream & | print (wostream &wos) const |
Protected Attributes | |
| Problem & | m_problem |
| Decomposition * | m_decomposition |
| Filter * | m_filter |
Friends | |
| class | Decomposition |
| CSP_API wostream & | operator<< (wostream &wos, const Retraction &retraction) |
|
|
Return the back jumping depth based on the conflict set of the variables modified at the current depth. We have to parse all of them and select the deepest variable that could have caused a conflict.
Implemented in CBJ, and Chronological. |
|
|
This function cleans up the retraction after a search. Reimplemented in CBJ. |
|
|
Erase the conflict sets of all the variables whose modification depth is greater than the depth we want to jump to and less than or equal to the current depth.
Reimplemented in CBJ. |
|
|
This function prepares the retraction for a new search. Reimplemented in CBJ. |
|
|
Print information about the monitor at the given stream.
Reimplemented in CBJ. |
|
||||||||||||
|
Notify the monitor that values have been removed from the domain of `victim' (but no dwo='domain wipe out'). This function adds to the conflict set of `victim' all the variables modified at the current depth of the search.
Implemented in CBJ, and Chronological. |
|
||||||||||||||||
|
Record a failure in the filter.
Implemented in CBJ, and Chronological. |
|
|
This function should be called before the constraint propagation. Reimplemented in CBJ. |
|
|
This function should be called after the constraint propagation. Reimplemented in CBJ. |
|
|
Merge the conflict sets of all the variables modified at the current depth in all the variables modified at the depth we want to jump to.
Reimplemented in CBJ. |
|
|
We give the Decomposition class access to this, to simplify the interface. This used to be part of Decomposition anyway, and it is only used there. |
1.3.9.1