|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.coursett.model.DefaultStudentSectioning
net.sf.cpsolver.coursett.custom.DeterministicStudentSectioning
public class DeterministicStudentSectioning
Deterministic implementation of the initial student sectioning. This class assign students to groups in
a deterministic way. Students are ordered by their academic information (curriculum) and unique ids and
assigned in this order to the first available group (configuration or lecture). See StudentSectioning
and DefaultStudentSectioning
for more details about sectioning students during course timetabling.
This deterministic sectioning can be enabled by setting the following parameter:
StudentSectioning.Class=net.sf.cpsolver.coursett.custom.DeterministicStudentSectioning
Nested Class Summary | |
---|---|
class |
DeterministicStudentSectioning.DeterministicInitialSectioning
Assign students to groups in a deterministic way, i.e., first student to first available group etc. |
Field Summary |
---|
Fields inherited from class net.sf.cpsolver.coursett.model.DefaultStudentSectioning |
---|
iFinalSectioning, iModel |
Constructor Summary | |
---|---|
DeterministicStudentSectioning(TimetableModel model)
|
Method Summary | |
---|---|
boolean |
hasFinalSectioning()
No re-sectioning (final sectioning) during deterministic student sectioning. |
void |
resection(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(TimetableModel model)
No re-sectioning (final sectioning) during deterministic student sectioning. |
Methods inherited from class net.sf.cpsolver.coursett.model.DefaultStudentSectioning |
---|
getClassLabel, getProgress, initialSectioning, initialSectioningLectures |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeterministicStudentSectioning(TimetableModel model)
Method Detail |
---|
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 into
InitialSectioning.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 into
InitialSectioning.Group
public boolean hasFinalSectioning()
hasFinalSectioning
in interface StudentSectioning
hasFinalSectioning
in class DefaultStudentSectioning
public void switchStudents(TimetableModel model)
switchStudents
in interface StudentSectioning
switchStudents
in class DefaultStudentSectioning
public void resection(Lecture lecture, boolean recursive, boolean configAsWell)
resection
in interface StudentSectioning
resection
in class DefaultStudentSectioning
lecture
- given lecturerecursive
- recursively resection lectures affected by a student swapconfigAsWell
- resection students between configurations as well
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |