001package org.cpsolver.coursett.criteria.placement;
002
003import java.util.Collection;
004import java.util.Map;
005
006import org.cpsolver.coursett.criteria.TimetablingCriterion;
007import org.cpsolver.coursett.model.Lecture;
008import org.cpsolver.coursett.model.Placement;
009import org.cpsolver.ifs.assignment.Assignment;
010import org.cpsolver.ifs.util.DataProperties;
011
012
013/**
014 * Abstract class for all criteria that are to be used only in the placement selection
015 * (do not have any impact on the overall solution value). Such criterion is for instance
016 * the number of hard conflict (values that have to be unassigned before a selected
017 * value can be assigned for the problem to remain consistent). 
018 * <br>
019 * 
020 * @version CourseTT 1.3 (University Course Timetabling)<br>
021 *          Copyright (C) 2006 - 2014 Tomáš Müller<br>
022 *          <a href="mailto:muller@unitime.org">muller@unitime.org</a><br>
023 *          <a href="http://muller.unitime.org">http://muller.unitime.org</a><br>
024 * <br>
025 *          This library is free software; you can redistribute it and/or modify
026 *          it under the terms of the GNU Lesser General Public License as
027 *          published by the Free Software Foundation; either version 3 of the
028 *          License, or (at your option) any later version. <br>
029 * <br>
030 *          This library is distributed in the hope that it will be useful, but
031 *          WITHOUT ANY WARRANTY; without even the implied warranty of
032 *          MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
033 *          Lesser General Public License for more details. <br>
034 * <br>
035 *          You should have received a copy of the GNU Lesser General Public
036 *          License along with this library; if not see
037 *          <a href='http://www.gnu.org/licenses/'>http://www.gnu.org/licenses/</a>.
038 */
039public abstract class PlacementSelectionCriterion extends TimetablingCriterion {
040
041    public PlacementSelectionCriterion() {
042        setValueUpdateType(ValueUpdateType.NoUpdate);
043    }
044    
045    @Override
046    public double getWeightDefault(DataProperties config) {
047        return 0.0;
048    }
049    
050    @Override
051    public void getInfo(Assignment<Lecture, Placement> assignment, Map<String, String> info) {
052    }
053    
054    @Override
055    public void getInfo(Assignment<Lecture, Placement> assignment, Map<String, String> info, Collection<Lecture> variables) {
056    }
057
058}