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:

Parameter Type Comment
General.Input String Path of an XML file to be loaded
Xml.LoadBest Boolean If true, load best assignments
Xml.LoadInitial Boolean If false, load initial assignments
Xml.LoadCurrent Boolean If true, load current assignments
Xml.LoadOfferings Boolean If true, load offerings (and their stucture, i.e., courses, configurations, subparts and sections)
Xml.LoadStudents Boolean If true, load students (and their requests)
Xml.StudentFilter StudentFilter If provided, students are filtered by the given student filter


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

Version:
StudentSct 1.2 (Student Sectioning)
Copyright (C) 2007 - 2010 Tomas Muller
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/.

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


Copyright © 2014 UniTime LLC. All Rights Reserved.