001package org.cpsolver.ifs.assignment; 002 003import org.cpsolver.ifs.model.Value; 004import org.cpsolver.ifs.model.Variable; 005import org.cpsolver.ifs.solver.Solver; 006 007/** 008 * A simple class comparing two values. Using {@link Value#compareTo(Assignment, Value)}. 009 * This is to replace the {@link Comparable} interface on the {@link Value} which is 010 * using the deprecated method {@link Value#compareTo(Value)}. 011 * 012 * @see Assignment 013 * @see Solver 014 * 015 * @author Tomáš Müller 016 * @version IFS 1.3 (Iterative Forward Search)<br> 017 * Copyright (C) 2014 Tomáš Müller<br> 018 * <a href="mailto:muller@unitime.org">muller@unitime.org</a><br> 019 * <a href="http://muller.unitime.org">http://muller.unitime.org</a><br> 020 * <br> 021 * This library is free software; you can redistribute it and/or modify 022 * it under the terms of the GNU Lesser General Public License as 023 * published by the Free Software Foundation; either version 3 of the 024 * License, or (at your option) any later version. <br> 025 * <br> 026 * This library is distributed in the hope that it will be useful, but 027 * WITHOUT ANY WARRANTY; without even the implied warranty of 028 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 029 * Lesser General Public License for more details. <br> 030 * <br> 031 * You should have received a copy of the GNU Lesser General Public 032 * License along with this library; if not see <a href='http://www.gnu.org/licenses'>http://www.gnu.org/licenses</a>. 033 * @param <V> Variable 034 * @param <T> Value 035 **/ 036public class ValueComparator<V extends Variable<V, T>, T extends Value<V, T>> extends AssignmentComparator<T, V, T> { 037 038 public ValueComparator(Assignment<V, T> assignment) { 039 super(assignment); 040 } 041 042}