net.sf.cpsolver.studentsct
Class StudentSectioningXMLSaver

java.lang.Object
  extended by net.sf.cpsolver.studentsct.StudentSectioningSaver
      extended by net.sf.cpsolver.studentsct.StudentSectioningXMLSaver
All Implemented Interfaces:
Runnable

public class StudentSectioningXMLSaver
extends StudentSectioningSaver

Save student sectioning solution into an XML file.

Parameters:

ParameterTypeComment
General.OutputStringFolder with the output solution in XML format (solution.xml)
Xml.ConvertIdsBooleanIf true, ids are converted (to be able to make input data public)
Xml.ShowNamesBooleanIf false, names are not exported (to be able to make input data public)
Xml.SaveBestBooleanIf true, best solution is saved.
Xml.SaveInitialBooleanIf true, initial solution is saved.
Xml.SaveCurrentBooleanIf true, current solution is saved.
Xml.SaveOnlineSectioningInfoBooleanIf true, save online sectioning info (i.e., expected and held space of each section)
Xml.SaveStudentInfoBooleanIf true, save student information (i.e., academic area classification, major, minor)


Usage:
new StudentSectioningXMLSaver(solver).save(new File("solution.xml"));

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
StudentSectioningXMLSaver(Solver solver)
          Constructor
 
Method Summary
 void save()
          Save an XML file
 void save(File outFile)
          Save an XML file
 
Methods inherited from class net.sf.cpsolver.studentsct.StudentSectioningSaver
getModel, getSolution, getSolver, run, setCallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StudentSectioningXMLSaver

public StudentSectioningXMLSaver(Solver solver)
Constructor

Parameters:
solver - student sectioning solver
Method Detail

save

public void save()
          throws Exception
Save an XML file

Specified by:
save in class StudentSectioningSaver
Throws:
Exception

save

public void save(File outFile)
          throws Exception
Save an XML file

Parameters:
outFile - output file
Throws:
Exception