public class DeterministicStudentSectioning extends DefaultStudentSectioning
StudentSectioning
and DefaultStudentSectioning
for more details about sectioning students during course timetabling.
StudentSectioning.Class=org.cpsolver.coursett.custom.DeterministicStudentSectioning
Modifier and Type | Class and Description |
---|---|
static class |
DeterministicStudentSectioning.DeterministicInitialSectioning
Assign students to groups in a deterministic way, i.e., first student to first available group etc.
|
iFinalSectioning, iModel, sDF2
Constructor and Description |
---|
DeterministicStudentSectioning(TimetableModel model) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasFinalSectioning()
No re-sectioning (final sectioning) during deterministic student sectioning.
|
void |
resection(Assignment<Lecture,Placement> assignment,
Lecture lecture,
boolean recursive,
boolean configAsWell)
No re-sectioning (final sectioning) during deterministic student sectioning.
|
protected InitialSectioning.Group[] |
studentsToConfigurations(Long offeringId,
Collection<Student> students,
Collection<Configuration> configurations)
Section students into configurations.
|
protected InitialSectioning.Group[] |
studentsToLectures(Long offeringId,
Collection<Student> students,
Collection<Lecture> lectures)
Section students into lectures.
|
void |
switchStudents(Solution<Lecture,Placement> solution,
TerminationCondition<Lecture,Placement> termination)
No re-sectioning (final sectioning) during deterministic student sectioning.
|
getClassLabel, getInfo, getInfo, getProgress, initialSectioning, initialSectioningLectures
public DeterministicStudentSectioning(TimetableModel model)
protected InitialSectioning.Group[] studentsToConfigurations(Long offeringId, Collection<Student> students, Collection<Configuration> configurations)
DefaultStudentSectioning
InitialSectioning.getGroups()
.studentsToConfigurations
in class DefaultStudentSectioning
offeringId
- instructional offering idstudents
- list of students to be sectionedconfigurations
- list of configurations the students are to be sectioned intoInitialSectioning.Group
protected InitialSectioning.Group[] studentsToLectures(Long offeringId, Collection<Student> students, Collection<Lecture> lectures)
DefaultStudentSectioning
InitialSectioning.getGroups()
.studentsToLectures
in class DefaultStudentSectioning
offeringId
- instructional offering idstudents
- list of students to be sectionedlectures
- list of lectures the students are to be sectioned intoInitialSectioning.Group
public boolean hasFinalSectioning()
hasFinalSectioning
in interface StudentSectioning
hasFinalSectioning
in class DefaultStudentSectioning
public void switchStudents(Solution<Lecture,Placement> solution, TerminationCondition<Lecture,Placement> termination)
switchStudents
in interface StudentSectioning
switchStudents
in class DefaultStudentSectioning
solution
- current solutiontermination
- termination condition (optional)public void resection(Assignment<Lecture,Placement> assignment, Lecture lecture, boolean recursive, boolean configAsWell)
resection
in interface StudentSectioning
resection
in class DefaultStudentSectioning
assignment
- current assignmentlecture
- given lecturerecursive
- recursively resection lectures affected by a student swapconfigAsWell
- resection students between configurations as well