org.cpsolver.studentsct.report

## Class SectionConflictTable

- java.lang.Object
- - org.cpsolver.studentsct.report.AbstractStudentSectioningReport
  - - org.cpsolver.studentsct.report.SectionConflictTable

- All Implemented Interfaces:
    StudentSectioningReport, StudentSectioningReport.Filter

      public class SectionConflictTable
      extends AbstractStudentSectioningReport

  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);
  Version:
    StudentSct 1.3 (Student Sectioning)
    Copyright (C) 2013 - 2014 Tomáš Müller
    muller@unitime.org
    http://muller.unitime.org
    This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
    This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
    You should have received a copy of the GNU Lesser General Public License along with this library; if not see http://www.gnu.org/licenses/.
  Author:
    Tomáš Müller

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `SectionConflictTable.Type` Report type

    - ### Nested classes/interfaces inherited from class org.cpsolver.studentsct.report.AbstractStudentSectioningReport

      `AbstractStudentSectioningReport.CourseMatcher, AbstractStudentSectioningReport.RequestMatcher`

    - ### Nested classes/interfaces inherited from interface org.cpsolver.studentsct.report.StudentSectioningReport

      `StudentSectioningReport.Filter`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SectionConflictTable(StudentSectioningModel model)`
    `SectionConflictTable(StudentSectioningModel model, SectionConflictTable.Type type)` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `CSVFile` | `createTable(Assignment<Request,Enrollment> assignment, DataProperties properties)` Create report

    - ### Methods inherited from class org.cpsolver.studentsct.report.AbstractStudentSectioningReport

      `create, getModel, isUseAmPm, matches, matches, matches, matches`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SectionConflictTable

          public SectionConflictTable(StudentSectioningModel model,
                                      SectionConflictTable.Type type)

      Constructor
      Parameters:
        `model` - student sectioning model
        `type` - report type

    - #### SectionConflictTable

          public SectionConflictTable(StudentSectioningModel model)

  - ### Method Detail

    - #### createTable

          public CSVFile createTable(Assignment<Request,Enrollment> assignment,
                                     DataProperties properties)

      Create report
      Specified by:
        `createTable` in class `AbstractStudentSectioningReport`
      Parameters:
        `assignment` - current assignment
      Returns:
        report as comma separated text file