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