public abstract class ExamRoomSharing extends Object
Constructor and Description |
---|
ExamRoomSharing(Model<Exam,ExamPlacement> model,
DataProperties config) |
Modifier and Type | Method and Description |
---|---|
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,
Element element)
Load sharing information (if needed) for a given exam
|
void |
save(Exam exam,
Element element,
IdConvertor idConvertor)
Save sharing information (if needed) for a given exam
|
public ExamRoomSharing(Model<Exam,ExamPlacement> model, DataProperties config)
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 questionspublic 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 questionspublic 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 questionsconflicts
- set of conflicting assignmentspublic 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 questionsconflicts
- set of conflicting assignmentspublic abstract boolean canShareRoom(Exam x1, Exam x2)
x1
- first examx2
- second exampublic void save(Exam exam, Element element, IdConvertor idConvertor)
exam
- exam in questionelement
- XML exam element to include sharing informationidConvertor
- id converter