net.sf.cpsolver.studentsct.report
Class DistanceConflictTable

java.lang.Object
  extended by net.sf.cpsolver.studentsct.report.DistanceConflictTable

public class DistanceConflictTable
extends Object

This class lists distance student conflicts in a CSVFile comma separated text file. Two sections that are attended by the same student are considered in a distance conflict if they are back-to-back taught in locations that are two far away. See DistanceConflict for more details.

Each line represent a pair if courses that have one or more distance conflicts in between (columns Course1, Course2), column NrStud displays the number of student distance conflicts (weighted by requests weights), and column AvgDist displays the average distance for all the distance conflicts between these two courses. The column NoAlt is Y when every possible enrollment of the first course is either overlapping or there is a distance conflict with every possible enrollment of the second course (it is N otherwise) and a column Reason which lists the sections that are involved in a distance conflict.

Usage: new DistanceConflictTable(model),createTable(true, true).save(aFile);

Version:
StudentSct 1.1 (Student Sectioning)
Copyright (C) 2007 Tomáš Müller
muller@unitime.org
Lazenska 391, 76314 Zlin, Czech Republic

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 2.1 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

Constructor Summary
DistanceConflictTable(StudentSectioningModel model)
          Constructor
 
Method Summary
 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

DistanceConflictTable

public DistanceConflictTable(StudentSectioningModel model)
Constructor

Parameters:
model - student sectioning model
Method Detail

getModel

public StudentSectioningModel getModel()
Return student sectioning model


createTable

public CSVFile createTable(boolean includeLastLikeStudents,
                           boolean includeRealStudents)
Create report

Parameters:
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)
Returns:
report as comma separated text file