public class ExamDistributionConstraint.Context extends Object implements AssignmentConstraintContext<Exam,ExamPlacement>
Constructor and Description |
---|
Context(Assignment<Exam,ExamPlacement> assignment) |
Modifier and Type | Method and Description |
---|---|
void |
assigned(Assignment<Exam,ExamPlacement> assignment,
ExamPlacement placement)
Called when
ConstraintWithContext.assigned(Assignment, long, Value) is called to update
the content of the context. |
void |
unassigned(Assignment<Exam,ExamPlacement> assignment,
ExamPlacement placement)
Called when
ConstraintWithContext.unassigned(Assignment, long, Value) is called to update
the content of the context. |
public Context(Assignment<Exam,ExamPlacement> assignment)
public void assigned(Assignment<Exam,ExamPlacement> assignment, ExamPlacement placement)
AssignmentConstraintContext
ConstraintWithContext.assigned(Assignment, long, Value)
is called to update
the content of the context.assigned
in interface AssignmentConstraintContext<Exam,ExamPlacement>
assignment
- current assignment (with which this context is associated)placement
- assigned valuepublic void unassigned(Assignment<Exam,ExamPlacement> assignment, ExamPlacement placement)
AssignmentConstraintContext
ConstraintWithContext.unassigned(Assignment, long, Value)
is called to update
the content of the context.unassigned
in interface AssignmentConstraintContext<Exam,ExamPlacement>
assignment
- current assignment (with which this context is associated)placement
- unassigned value