protected class ExamSplitMoves.ExamSplitNeighbour extends Neighbour<Exam,ExamPlacement>
Constructor and Description |
---|
ExamSplitNeighbour(Exam exam,
ExamPlacement placement)
Split an exam into two, assign the new exam into the given placement.
|
Modifier and Type | Method and Description |
---|---|
void |
assign(long iteration)
Perform the split.
|
Exam |
exam()
Exam to be split.
|
int |
nrStudents()
Number of students that will be moved into the new exam.
|
ExamPlacement |
placement()
Placement of the new exam.
|
double |
value()
Value of the split.
|
public ExamSplitNeighbour(Exam exam, ExamPlacement placement)
exam
- an exam to be splitplacement
- a placement to be assigned to the new exampublic void assign(long iteration)
assign
in class Neighbour<Exam,ExamPlacement>
public double value()
value
in class Neighbour<Exam,ExamPlacement>
public int nrStudents()
public ExamPlacement placement()