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. |
int |
getViolations() |
void |
unassigned(Assignment<Exam,ExamPlacement> assignment,
ExamPlacement placement)
Called when
ConstraintWithContext.unassigned(Assignment, long, Value) is called to update
the content of the context. |
protected void |
updateCriterion(Assignment<Exam,ExamPlacement> assignment) |
public Context(Assignment<Exam,ExamPlacement> assignment)
public void assigned(Assignment<Exam,ExamPlacement> assignment, ExamPlacement placement)
AssignmentConstraintContextConstraintWithContext.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)
AssignmentConstraintContextConstraintWithContext.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 valueprotected void updateCriterion(Assignment<Exam,ExamPlacement> assignment)
public int getViolations()