public class ExamPeriodPlacement extends Object implements Comparable<ExamPeriodPlacement>
ExamPeriod
and a penalty associated with a placement of an exam into
the given period. Constructor and Description |
---|
ExamPeriodPlacement(ExamPeriod period,
int penalty)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ExamPeriodPlacement o)
Compare two period placements
|
boolean |
equals(Object o)
Compare two room placements for equality
|
int |
getExamPenalty()
Period penalty for given exam
|
Long |
getId()
Examination period id
|
int |
getIndex()
Examination period index
|
int |
getPenalty()
Examination period penalty (for an assignment of this period to the given
exam
Exam.getPeriodPlacements() ) |
ExamPeriod |
getPeriod()
Examination period
|
int |
hashCode()
Hash code
|
String |
toString() |
public ExamPeriodPlacement(ExamPeriod period, int penalty)
period
- examination period that is available for an exam and that is
of enough lengthpenalty
- period penalty for given exampublic ExamPeriod getPeriod()
public int getIndex()
public int getPenalty()
Exam.getPeriodPlacements()
)ExamPeriod.getPenalty()
public int getExamPenalty()
public int compareTo(ExamPeriodPlacement o)
compareTo
in interface Comparable<ExamPeriodPlacement>