public class PredefinedExamRoomSharing extends ExamRoomSharing
addPair(Exam, Exam) and it is persisted with the solution XML (see
ExamModel.save(Assignment), canShareRoom element for each exam containing a comma separated list of exam ids).
| Constructor and Description |
|---|
PredefinedExamRoomSharing(Model<Exam,ExamPlacement> model,
DataProperties config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPair(Exam x1,
Exam x2)
Add a pair of exams that are allowed to share a room
|
void |
addPair(Long examId1,
Long examId2)
Add a pair of exams that are allowed to share a room
|
boolean |
canShareRoom(Exam x1,
Exam x2)
True if given two exams can share a room
|
void |
clear()
Clear examination pairs
|
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
|
computeConflicts, computeConflicts, inConflict, inConflictpublic PredefinedExamRoomSharing(Model<Exam,ExamPlacement> model, DataProperties config)
public boolean canShareRoom(Exam x1, Exam x2)
ExamRoomSharingcanShareRoom in class ExamRoomSharingx1 - first examx2 - second exampublic void addPair(Exam x1, Exam x2)
x1 - first examx2 - second exampublic void addPair(Long examId1, Long examId2)
examId1 - first exam unique idexamId2 - second exam unique idpublic void clear()
public void save(Exam exam, Element element, IdConvertor idConvertor)
ExamRoomSharingsave in class ExamRoomSharingexam - exam in questionelement - XML exam element to include sharing informationidConvertor - id converterpublic void load(Exam exam, Element element)
ExamRoomSharingload in class ExamRoomSharingexam - exam in questionelement - XML exam element including sharing information