    001    package ttsolver;
    002
    003    import java.io.*;
    004
    005    /**
    006     * Abstract timetable loader class.
    007     *
    008     * @author <a href="mailto:muller@ktiml.mff.cuni.cz">Tomáš Müller</a>
    009     * @version 1.0
    010     */
    011
    012    public abstract class TimetableLoader {
    013        private TimetableModel iModel = null;
    014        /** Constructor
    015         * @param model an empty instance of timetable model
    016         */
    017        public TimetableLoader(TimetableModel model) {
    018            iModel = model;
    019        }
    020        protected TimetableModel getModel() { return iModel; }
    021        /** Load the model.
    022         * @param out some error/warning/info messages could be printed here
    023         */
    024        public abstract void load(PrintWriter out) throws Exception;
    025    }