use of org.cpsolver.exam.reports.ExamStudentMoreTwoADay in project cpsolver by UniTime.
the class Test method createReports.
/**
* Generate exam reports
* @param model problem model
* @param assignment current assignment
* @param outDir output folder
* @param outName output file name prefix
* @throws IOException may be thrown when writing fails
*/
public static void createReports(ExamModel model, Assignment<Exam, ExamPlacement> assignment, File outDir, String outName) throws IOException {
new ExamAssignments(model).report(assignment).save(new File(outDir, outName + ".schdex.csv"));
new ExamCourseSectionAssignments(model).report(assignment).save(new File(outDir, outName + ".schdcs.csv"));
new ExamStudentConflicts(model).report(assignment).save(new File(outDir, outName + ".sconf.csv"));
new ExamInstructorConflicts(model).report(assignment).save(new File(outDir, outName + ".iconf.csv"));
new ExamStudentConflictsPerExam(model).report(assignment).save(new File(outDir, outName + ".sconfex.csv"));
new ExamStudentDirectConflicts(model).report(assignment).save(new File(outDir, outName + ".sdir.csv"));
new ExamStudentBackToBackConflicts(model).report(assignment).save(new File(outDir, outName + ".sbtb.csv"));
new ExamStudentMoreTwoADay(model).report(assignment).save(new File(outDir, outName + ".sm2d.csv"));
new ExamPeriodUsage(model).report(assignment).save(new File(outDir, outName + ".per.csv"));
new ExamRoomSchedule(model).report(assignment).save(new File(outDir, outName + ".schdr.csv"));
new ExamRoomSplit(model).report(assignment).save(new File(outDir, outName + ".rsplit.csv"));
new ExamNbrMeetingsPerDay(model).report(assignment).save(new File(outDir, outName + ".distmpd.csv"));
new ExamStudentConflictsBySectionCourse(model).report(assignment).save(new File(outDir, outName + ".sconfcs.csv"));
}
Aggregations