|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.exam.model.ExamPeriodPlacement
public class ExamPeriodPlacement
Representation of a period placement of an exam. It contains a period
ExamPeriod
and a penalty associated with a placement of an exam into
the given period.
Constructor Summary | |
---|---|
ExamPeriodPlacement(ExamPeriod period,
int penalty)
Constructor |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 examMethod Detail |
---|
public ExamPeriod getPeriod()
public Long getId()
public int getIndex()
public int getPenalty()
Exam.getPeriodPlacements()
)
ExamPeriod.getPenalty()
public int getExamPenalty()
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int compareTo(ExamPeriodPlacement o)
compareTo
in interface Comparable<ExamPeriodPlacement>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |