Search in sources :

Example 1 with ExamInstructorConflicts

use of org.cpsolver.exam.reports.ExamInstructorConflicts 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"));
}
Also used : ExamStudentMoreTwoADay(org.cpsolver.exam.reports.ExamStudentMoreTwoADay) ExamStudentConflicts(org.cpsolver.exam.reports.ExamStudentConflicts) ExamPeriodUsage(org.cpsolver.exam.reports.ExamPeriodUsage) ExamStudentConflictsPerExam(org.cpsolver.exam.reports.ExamStudentConflictsPerExam) ExamRoomSplit(org.cpsolver.exam.reports.ExamRoomSplit) ExamStudentDirectConflicts(org.cpsolver.exam.reports.ExamStudentDirectConflicts) ExamStudentConflictsBySectionCourse(org.cpsolver.exam.reports.ExamStudentConflictsBySectionCourse) ExamAssignments(org.cpsolver.exam.reports.ExamAssignments) ExamNbrMeetingsPerDay(org.cpsolver.exam.reports.ExamNbrMeetingsPerDay) ExamCourseSectionAssignments(org.cpsolver.exam.reports.ExamCourseSectionAssignments) ExamInstructorConflicts(org.cpsolver.exam.reports.ExamInstructorConflicts) ExamRoomSchedule(org.cpsolver.exam.reports.ExamRoomSchedule) ExamStudentBackToBackConflicts(org.cpsolver.exam.reports.ExamStudentBackToBackConflicts) File(java.io.File)

Aggregations

File (java.io.File)1 ExamAssignments (org.cpsolver.exam.reports.ExamAssignments)1 ExamCourseSectionAssignments (org.cpsolver.exam.reports.ExamCourseSectionAssignments)1 ExamInstructorConflicts (org.cpsolver.exam.reports.ExamInstructorConflicts)1 ExamNbrMeetingsPerDay (org.cpsolver.exam.reports.ExamNbrMeetingsPerDay)1 ExamPeriodUsage (org.cpsolver.exam.reports.ExamPeriodUsage)1 ExamRoomSchedule (org.cpsolver.exam.reports.ExamRoomSchedule)1 ExamRoomSplit (org.cpsolver.exam.reports.ExamRoomSplit)1 ExamStudentBackToBackConflicts (org.cpsolver.exam.reports.ExamStudentBackToBackConflicts)1 ExamStudentConflicts (org.cpsolver.exam.reports.ExamStudentConflicts)1 ExamStudentConflictsBySectionCourse (org.cpsolver.exam.reports.ExamStudentConflictsBySectionCourse)1 ExamStudentConflictsPerExam (org.cpsolver.exam.reports.ExamStudentConflictsPerExam)1 ExamStudentDirectConflicts (org.cpsolver.exam.reports.ExamStudentDirectConflicts)1 ExamStudentMoreTwoADay (org.cpsolver.exam.reports.ExamStudentMoreTwoADay)1