public class PredefinedExamRoomSharing extends ExamRoomSharing
addPair(Exam, Exam)
and it is persisted with the solution XML (see
ExamModel.save()
, 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, inConflict
public PredefinedExamRoomSharing(Model<Exam,ExamPlacement> model, DataProperties config)
public boolean canShareRoom(Exam x1, Exam x2)
ExamRoomSharing
canShareRoom
in class ExamRoomSharing
public void addPair(Long examId1, Long examId2)
public void clear()
public void save(Exam exam, Element element, IdConvertor idConvertor)
ExamRoomSharing
save
in class ExamRoomSharing
public void load(Exam exam, Element element)
ExamRoomSharing
load
in class ExamRoomSharing