public class SameInstructorConstraint.Context extends Object implements AssignmentConstraintContext<TeachingRequest.Variable,TeachingAssignment>
SameInstructor criterion.| Constructor and Description |
|---|
Context(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment) |
| Modifier and Type | Method and Description |
|---|---|
void |
assigned(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
TeachingAssignment value)
Called when
ConstraintWithContext.assigned(Assignment, long, Value) is called to update
the content of the context. |
int |
getPreference()
Current preference value (see
SameInstructorConstraint.getCurrentPreference(Assignment)) |
void |
unassigned(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment,
TeachingAssignment value)
Called when
ConstraintWithContext.unassigned(Assignment, long, Value) is called to update
the content of the context. |
public Context(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment)
public void assigned(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment, TeachingAssignment value)
AssignmentConstraintContextConstraintWithContext.assigned(Assignment, long, Value) is called to update
the content of the context.assigned in interface AssignmentConstraintContext<TeachingRequest.Variable,TeachingAssignment>assignment - current assignment (with which this context is associated)value - assigned valuepublic void unassigned(Assignment<TeachingRequest.Variable,TeachingAssignment> assignment, TeachingAssignment value)
AssignmentConstraintContextConstraintWithContext.unassigned(Assignment, long, Value) is called to update
the content of the context.unassigned in interface AssignmentConstraintContext<TeachingRequest.Variable,TeachingAssignment>assignment - current assignment (with which this context is associated)value - unassigned valuepublic int getPreference()
SameInstructorConstraint.getCurrentPreference(Assignment))