V - VariableT - Valuepublic interface AssignmentConstraintContext<V extends Variable<V,T>,T extends Value<V,T>> extends AssignmentContext
AssignmentContext which is used by the
ConstraintWithContext class. The notification methods assigned and unassigned
are automatically called by the constraint whenever a variable of the constraint
is assigned or unassigned respectively.ConstraintWithContext| Modifier and Type | Method and Description |
|---|---|
void |
assigned(Assignment<V,T> assignment,
T value)
Called when
ConstraintWithContext.assigned(Assignment, long, Value) is called to update
the content of the context. |
void |
unassigned(Assignment<V,T> assignment,
T value)
Called when
ConstraintWithContext.unassigned(Assignment, long, Value) is called to update
the content of the context. |
void assigned(Assignment<V,T> assignment, T value)
ConstraintWithContext.assigned(Assignment, long, Value) is called to update
the content of the context.assignment - current assignment (with which this context is associated)value - assigned valuevoid unassigned(Assignment<V,T> assignment, T value)
ConstraintWithContext.unassigned(Assignment, long, Value) is called to update
the content of the context.assignment - current assignment (with which this context is associated)value - unassigned value