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 * @author  Tomáš Müller
021 * @version CourseTT 1.3 (University Course Timetabling)<br>
022 *          Copyright (C) 2006 - 2014 Tomáš Müller<br>
023 *          <a href="mailto:muller@unitime.org">muller@unitime.org</a><br>
024 *          <a href="http://muller.unitime.org">http://muller.unitime.org</a><br>
025 * <br>
026 *          This library is free software; you can redistribute it and/or modify
027 *          it under the terms of the GNU Lesser General Public License as
028 *          published by the Free Software Foundation; either version 3 of the
029 *          License, or (at your option) any later version. <br>
030 * <br>
031 *          This library is distributed in the hope that it will be useful, but
032 *          WITHOUT ANY WARRANTY; without even the implied warranty of
033 *          MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
034 *          Lesser General Public License for more details. <br>
035 * <br>
036 *          You should have received a copy of the GNU Lesser General Public
037 *          License along with this library; if not see
038 *          <a href='http://www.gnu.org/licenses/'>http://www.gnu.org/licenses/</a>.
039 */
040public abstract class PlacementSelectionCriterion extends TimetablingCriterion {
041
042    public PlacementSelectionCriterion() {
043        setValueUpdateType(ValueUpdateType.NoUpdate);
044    }
045    
046    @Override
047    public double getWeightDefault(DataProperties config) {
048        return 0.0;
049    }
050    
051    @Override
052    public void getInfo(Assignment<Lecture, Placement> assignment, Map<String, String> info) {
053    }
054    
055    @Override
056    public void getInfo(Assignment<Lecture, Placement> assignment, Map<String, String> info, Collection<Lecture> variables) {
057    }
058
059}