|
||||||||||
| 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(Object o)
Compare two period placements |
boolean |
equals(Object o)
Compare two room placements for equality |
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 exam| Method Detail |
|---|
public ExamPeriod getPeriod()
public Long getId()
public int getIndex()
public int getPenalty()
Exam.getPeriodPlacements())
ExamPeriod.getPenalty()public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int compareTo(Object o)
compareTo in interface Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||