net.sf.cpsolver.coursett

## Class TimetableXMLSaver

- java.lang.Object
- - net.sf.cpsolver.coursett.TimetableSaver
  - - net.sf.cpsolver.coursett.TimetableXMLSaver

- All Implemented Interfaces:
    Runnable

      public class TimetableXMLSaver
      extends TimetableSaver

  This class saves the resultant solution in the XML format.
  Parameters:

  Parameter | Type | Comment
  --- | --- | ---
  General.Output | `String` | Folder with the output solution in XML format (solution.xml)
  Xml.ConvertIds | `Boolean` | If true, ids are converted (to be able to make input data public)
  Xml.ShowNames | `Boolean` | If false, names are not exported (to be able to make input data public)
  Xml.SaveBest | `Boolean` | If true, best solution is saved.
  Xml.SaveInitial | `Boolean` | If true, initial solution is saved.
  Xml.SaveCurrent | `Boolean` | If true, current solution is saved.
  Xml.ExportStudentSectioning | `Boolean` | If true, student sectioning is saved even when there is no solution.

  Version:
    CourseTT 1.2 (University Course Timetabling)
    Copyright (C) 2006 - 2010 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/.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static boolean` | `ANONYMISE`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TimetableXMLSaver(Solver<Lecture,Placement> solver)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `save()` Save the solution
    `void` | `save(File outFile)`

    - ### Methods inherited from class net.sf.cpsolver.coursett.TimetableSaver

      `getModel, getSolution, getSolver, run, setCallback`

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

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

- - ### Field Detail

    - #### ANONYMISE

          public static boolean ANONYMISE

  - ### Constructor Detail

    - #### TimetableXMLSaver

          public TimetableXMLSaver(Solver<Lecture,Placement> solver)

  - ### Method Detail

    - #### save

          public void save()
                    throws Exception

      Description copied from class: `TimetableSaver`
      Save the solution
      Specified by:
        `save` in class `TimetableSaver`
      Throws:
        `Exception`

    - #### save

          public void save(File outFile)
                    throws Exception

      Throws:
        `Exception`