ttsolver
Class TimetableSaver

java.lang.Object
  extended by ttsolver.TimetableSaver
Direct Known Subclasses:
TimetableXMLSaver

public abstract class TimetableSaver
extends Object

Abstract timetable saver class.

Version:
1.0
Author:
Tomáš Müller

Constructor Summary
TimetableSaver(Solution solution)
          Constructor
 
Method Summary
protected  TimetableModel getModel()
          Model of the solution
protected  Solution getSolution()
          Solution to be saved
abstract  void save(PrintWriter out)
          Save the solution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimetableSaver

public TimetableSaver(Solution solution)
Constructor

Parameters:
solution - solution to be saved
Method Detail

getSolution

protected Solution getSolution()
Solution to be saved


getModel

protected TimetableModel getModel()
Model of the solution


save

public abstract void save(PrintWriter out)
                   throws Exception
Save the solution

Parameters:
out - some error/warning/info messages could be printed here
Throws:
Exception


Copyright © 2005 Tomáš Müller