net.sf.cpsolver.studentsct
Class StudentSectioningXMLLoader

java.lang.Object
  extended by net.sf.cpsolver.studentsct.StudentSectioningLoader
      extended by net.sf.cpsolver.studentsct.StudentSectioningXMLLoader
All Implemented Interfaces:
Runnable

public class StudentSectioningXMLLoader
extends StudentSectioningLoader

Load student sectioning model from an XML file.

Parameters:

ParameterTypeComment
General.InputStringPath of an XML file to be loaded
Xml.LoadBestBooleanIf true, load best assignments
Xml.LoadInitialBooleanIf false, load initial assignments
Xml.LoadCurrentBooleanIf true, load current assignments
Xml.LoadOfferingsBooleanIf true, load offerings (and their stucture, i.e., courses, configurations, subparts and sections)
Xml.LoadStudentsBooleanIf true, load students (and their requests)
Xml.StudentFilterStudentFilterIf provided, students are filtered by the given student filter


Usage:
StudentSectioningModel model = new StudentSectioningModel(cfg);
new StudentSectioningXMLLoader(model).load();

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
StudentSectioningXMLLoader(StudentSectioningModel model)
          Constructor
 
Method Summary
 void load()
          Load the file
 void setInputFile(File inputFile)
          Set input file (e.g., if it is not set by General.Input property)
 void setLoadOfferings(boolean loadOfferings)
          Set whether to load offerings
 void setLoadStudents(boolean loadStudents)
          Set whether to load students
 void setStudentFilter(StudentFilter filter)
          Set student filter
 
Methods inherited from class net.sf.cpsolver.studentsct.StudentSectioningLoader
getModel, run, setCallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StudentSectioningXMLLoader

public StudentSectioningXMLLoader(StudentSectioningModel model)
Constructor

Parameters:
model - student sectioning model
Method Detail

setInputFile

public void setInputFile(File inputFile)
Set input file (e.g., if it is not set by General.Input property)


setStudentFilter

public void setStudentFilter(StudentFilter filter)
Set student filter


setLoadStudents

public void setLoadStudents(boolean loadStudents)
Set whether to load students


setLoadOfferings

public void setLoadOfferings(boolean loadOfferings)
Set whether to load offerings


load

public void load()
          throws Exception
Load the file

Specified by:
load in class StudentSectioningLoader
Throws:
Exception