|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectifs.extension.Extension
ifs.extension.MacPropagation
ifs.dbt.DbtPropagation
public class DbtPropagation
Maintenance of arc consistency in dynamic backtracking.
The difference between MacPropagation and this DBT propagation is that all not-assigned values
of an assigned variable are marked as nogood. Also, when a dead end is reached, unassignment or failure
takes place.
This IFS solver extension is to be used only in case of dynamic backtracking and it has no parameters.
| Field Summary |
|---|
| Fields inherited from class ifs.extension.MacPropagation |
|---|
iConstraints, iIteration |
| Constructor Summary | |
|---|---|
DbtPropagation(Solver solver,
DataProperties properties)
Constructor. |
|
| Method Summary | |
|---|---|
void |
afterAssigned(long iteration,
Value value)
Propagation takes place every time a value is assigned to a variable. |
void |
afterUnassigned(long iteration,
Value value)
Undo propagation when a value is unassigned. |
boolean |
valueSelected(long iteration,
Variable variable,
Value value)
If no value is selected (because of a dead end), make some unassignments. |
boolean |
variableSelected(long iteration,
Variable variable)
If no variable is selected (all variables are assinged), unassign the last assigned variable. |
| Methods inherited from class ifs.extension.MacPropagation |
|---|
addConstraint, beforeAssigned, contains, goodValues, init, isGood, noGood, propagate, propagate, propagate, propagate, setGood, setNoGood, undoPropagate |
| Methods inherited from class ifs.extension.Extension |
|---|
beforeUnassigned, constraintAdded, constraintRemoved, getInfo, getModel, getProperties, getSolver, isRegistered, register, unregister, useValueExtra, useVariableExtra, variableAdded, variableRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbtPropagation(Solver solver,
DataProperties properties)
| Method Detail |
|---|
public void afterAssigned(long iteration,
Value value)
afterAssigned in interface ModelListenerafterAssigned in class MacPropagationiteration - current iterationvalue - value to be assignedMacPropagation.propagate(Variable)
public void afterUnassigned(long iteration,
Value value)
afterUnassigned in interface ModelListenerafterUnassigned in class MacPropagationiteration - current iterationvalue - value to be unassignedMacPropagation.undoPropagate(Variable)
public boolean variableSelected(long iteration,
Variable variable)
DbtVariableSelection):
variableSelected in interface SolverListeneriteration - current iterationvariable - selected variableDbtVariableSelection.selectVariable(Solution)
public boolean valueSelected(long iteration,
Variable variable,
Value value)
DbtValueSelection),
valueSelected in interface SolverListeneriteration - current iterationvariable - selected variablevalue - selected variableDbtVariableSelection.selectVariable(Solution)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||