public class MacPropagation.NoGood extends Object implements AssignmentContext
Constructor and Description |
---|
NoGood(Assignment<V,T> assignment)
Initialization.
|
Modifier and Type | Method and Description |
---|---|
Set<T> |
getNoGood(T value) |
Set<T>[] |
getNoGood(V variable) |
protected void |
propagate(Assignment<V,T> assignment,
Queue<V> queue)
Propagation over the queue of variables.
|
protected void |
propagate(Assignment<V,T> assignment,
V variable)
Propagation over the given variable.
|
protected boolean |
propagate(Assignment<V,T> assignment,
V aVariable,
V anotherVariable) |
protected boolean |
propagate(Assignment<V,T> assignment,
V aVariable,
V anotherVariable,
List<T> adepts) |
void |
setNoGood(T value,
Set<T> noGood) |
void |
setNoGood(V variable,
Set<T>[] noGood) |
void |
undoPropagate(Assignment<V,T> assignment,
V variable)
Propagation undo over the given variable.
|
public NoGood(Assignment<V,T> assignment)
protected boolean propagate(Assignment<V,T> assignment, V aVariable, V anotherVariable, List<T> adepts)
protected void propagate(Assignment<V,T> assignment, V variable)
assignment
- current assignmentvariable
- given variableprotected void propagate(Assignment<V,T> assignment, Queue<V> queue)
assignment
- current assignmentqueue
- variable queuepublic void undoPropagate(Assignment<V,T> assignment, V variable)
assignment
- current assignmentvariable
- given variable