V - VariableT - Valuepublic interface ConstraintListener<V extends Variable<V,T>,T extends Value<V,T>>
Constraint| Modifier and Type | Method and Description |
|---|---|
void |
constraintAfterAssigned(Assignment<V,T> assignment,
long iteration,
Constraint<V,T> constraint,
T assigned,
Set<T> unassigned)
Called by the constraint, after a value is assigned to its variable.
|
void |
constraintBeforeAssigned(Assignment<V,T> assignment,
long iteration,
Constraint<V,T> constraint,
T assigned,
Set<T> unassigned)
Called by the constraint, before a value is assigned to its variable.
|
void constraintBeforeAssigned(Assignment<V,T> assignment, long iteration, Constraint<V,T> constraint, T assigned, Set<T> unassigned)
assignment - current assignmentiteration - current iterationconstraint - source constraintassigned - value which will be assigned to its variable (
Value.variable())unassigned - set of conflicting values which will be unassigned by the
constraint before it assigns the given valuevoid constraintAfterAssigned(Assignment<V,T> assignment, long iteration, Constraint<V,T> constraint, T assigned, Set<T> unassigned)
assignment - current assignmentiteration - current iterationconstraint - source constraintassigned - value which was assigned to its variable (
Value.variable())unassigned - set of conflicting values which were unassigned by the
constraint before it assigned the given value