public interface ConstraintListener<T extends Value<?,T>>
Constraint
Modifier and Type | Method and Description |
---|---|
void |
constraintAfterAssigned(long iteration,
Constraint<?,T> constraint,
T assigned,
Set<T> unassigned)
Called by the constraint, after a value is assigned to its variable.
|
void |
constraintBeforeAssigned(long iteration,
Constraint<?,T> constraint,
T assigned,
Set<T> unassigned)
Called by the constraint, before a value is assigned to its variable.
|
void constraintBeforeAssigned(long iteration, Constraint<?,T> constraint, T assigned, Set<T> unassigned)
iteration
- 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(long iteration, Constraint<?,T> constraint, T assigned, Set<T> unassigned)
iteration
- 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