protected class ExamRotationPenalty.RotationContext extends AbstractCriterion.ValueContext
iTotal
Constructor and Description |
---|
RotationContext(Assignment<Exam,ExamPlacement> assignment) |
Modifier and Type | Method and Description |
---|---|
void |
assigned(Assignment<Exam,ExamPlacement> assignment,
ExamPlacement value)
Update value when assigned
|
double |
averagePeriod() |
int |
nrAssignedExamsWithAvgPeriod() |
void |
unassigned(Assignment<Exam,ExamPlacement> assignment,
ExamPlacement value)
Update value when unassigned
|
public RotationContext(Assignment<Exam,ExamPlacement> assignment)
public void assigned(Assignment<Exam,ExamPlacement> assignment, ExamPlacement value)
AbstractCriterion.ValueContext
assigned
in class AbstractCriterion.ValueContext
assignment
- current assignmentvalue
- recently assigned valuepublic void unassigned(Assignment<Exam,ExamPlacement> assignment, ExamPlacement value)
AbstractCriterion.ValueContext
unassigned
in class AbstractCriterion.ValueContext
assignment
- current assignmentvalue
- recently unassigned valuepublic int nrAssignedExamsWithAvgPeriod()
public double averagePeriod()