    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 * @version IFS 1.3 (Iterative Forward Search)<br>
    016 *          Copyright (C) 2014 Tomáš Müller<br>
    017 *          <a href="mailto:muller@unitime.org">muller@unitime.org</a><br>
    018 *          <a href="http://muller.unitime.org">http://muller.unitime.org</a><br>
    019 * <br>
    020 *          This library is free software; you can redistribute it and/or modify
    021 *          it under the terms of the GNU Lesser General Public License as
    022 *          published by the Free Software Foundation; either version 3 of the
    023 *          License, or (at your option) any later version. <br>
    024 * <br>
    025 *          This library is distributed in the hope that it will be useful, but
    026 *          WITHOUT ANY WARRANTY; without even the implied warranty of
    027 *          MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    028 *          Lesser General Public License for more details. <br>
    029 * <br>
    030 *          You should have received a copy of the GNU Lesser General Public
    031 *          License along with this library; if not see <a href='http://www.gnu.org/licenses'>http://www.gnu.org/licenses</a>.
    032 * @param <V> Variable
    033 * @param <T> Value
    034 **/
    035public class ValueComparator<V extends Variable<V, T>, T extends Value<V, T>> extends AssignmentComparator<T, V, T> {
    036
    037    public ValueComparator(Assignment<V, T> assignment) {
    038        super(assignment);
    039    }
    040
    041}