|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.exam.model.ExamRoomSharing
public abstract class ExamRoomSharing
Abstract room sharing model. Defines when and under what conditions two or more exams can share a room.
Constructor Summary | |
---|---|
ExamRoomSharing(Model<Exam,ExamPlacement> model,
DataProperties config)
|
Method Summary | |
---|---|
abstract boolean |
canShareRoom(Exam x1,
Exam x2)
True if given two exams can share a room |
void |
computeConflicts(Exam exam,
Collection<ExamPlacement> other,
ExamRoom room,
Set<ExamPlacement> conflicts)
Compute conflicting placement for the case when a given examination needs to be placed in the same room at the same period as the other examinations |
void |
computeConflicts(ExamPlacement exam,
Collection<ExamPlacement> other,
ExamRoom room,
Set<ExamPlacement> conflicts)
Compute conflicting placement for the case when a given examination needs to be placed in the same room at the same period as the other examinations |
boolean |
inConflict(Exam exam,
Collection<ExamPlacement> other,
ExamRoom room)
True if given examination can not be placed in the same room at the same period as the other examinations |
boolean |
inConflict(ExamPlacement exam,
Collection<ExamPlacement> other,
ExamRoom room)
True if given examination can not be placed in the same room at the same period as the other examinations |
void |
load(Exam exam,
org.dom4j.Element element)
Load sharing information (if needed) for a given exam |
void |
save(Exam exam,
org.dom4j.Element element,
IdConvertor idConvertor)
Save sharing information (if needed) for a given exam |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExamRoomSharing(Model<Exam,ExamPlacement> model, DataProperties config)
Method Detail |
---|
public boolean inConflict(ExamPlacement exam, Collection<ExamPlacement> other, ExamRoom room)
exam
- examination placement in questionother
- exams currently assigned in the room at the requested periodroom
- examination room in questions
public boolean inConflict(Exam exam, Collection<ExamPlacement> other, ExamRoom room)
exam
- examination in questionother
- exams currently assigned in the room at the requested periodroom
- examination room in questions
public void computeConflicts(ExamPlacement exam, Collection<ExamPlacement> other, ExamRoom room, Set<ExamPlacement> conflicts)
exam
- examination placement in questionother
- exams currently assigned in the room at the requested periodroom
- examination room in questionspublic void computeConflicts(Exam exam, Collection<ExamPlacement> other, ExamRoom room, Set<ExamPlacement> conflicts)
exam
- examination in questionother
- exams currently assigned in the room at the requested periodroom
- examination room in questionspublic abstract boolean canShareRoom(Exam x1, Exam x2)
public void save(Exam exam, org.dom4j.Element element, IdConvertor idConvertor)
public void load(Exam exam, org.dom4j.Element element)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |