|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.cpsolver.studentsct.report.SectionConflictTable
public class SectionConflictTable
This class computes time and availability conflicts on classes in a CSVFile
comma separated
text file.
The first report (type OVERLAPS) shows time conflicts between pairs of classes. Each such enrollment
is given a weight of 1/n, where n is the number of available enrollments of the student into the course.
This 1/n is added to each class that is present in a conflict. These numbers are aggregated on
individual classes and on pairs of classes (that are in a time conflict).
The second report (type UNAVAILABILITIES) shows for each course how many students could not get into
the course because of the limit constraints. It considers all the not-conflicting, but unavailable enrollments
of a student into the course. For each such an enrollment 1/n is added to each class. So, in a way, the
Availability Conflicts column shows how much space is missing in each class. The Class Potential column
can be handy as well. If the class would be unlimited, this is the number of students (out of all the
conflicting students) that can get into the class.
The last report (type OVERLAPS_AND_UNAVAILABILITIES) show the two reports together. It is possible that
there is a course where some students cannot get in because of availabilities (all not-conflicting enrollments
have no available space) as well as time conflicts (all available enrollments are conflicting with some other
classes the student has).
Usage: new SectionConflictTable(model, type),createTable(true, true).save(aFile);
Nested Class Summary | |
---|---|
static class |
SectionConflictTable.Type
Report type |
Constructor Summary | |
---|---|
SectionConflictTable(StudentSectioningModel model)
|
|
SectionConflictTable(StudentSectioningModel model,
SectionConflictTable.Type type)
Constructor |
Method Summary | |
---|---|
CSVFile |
create(DataProperties properties)
|
CSVFile |
createTable(boolean includeLastLikeStudents,
boolean includeRealStudents)
Create report |
StudentSectioningModel |
getModel()
Return student sectioning model |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SectionConflictTable(StudentSectioningModel model, SectionConflictTable.Type type)
model
- student sectioning modelpublic SectionConflictTable(StudentSectioningModel model)
Method Detail |
---|
public StudentSectioningModel getModel()
public CSVFile createTable(boolean includeLastLikeStudents, boolean includeRealStudents)
includeLastLikeStudents
- true, if last-like students should be included (i.e.,
Student.isDummy()
is true)includeRealStudents
- true, if real students should be included (i.e.,
Student.isDummy()
is false)
public CSVFile create(DataProperties properties)
create
in interface StudentSectioningReport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |