001 package ifs.example.csp;
002
003 import ifs.model.*;
004
005 /**
006 * CSP value.
007 *
008 * @author <a href="mailto:muller@ktiml.mff.cuni.cz">Tomáš Müller</a>
009 * @version 1.0
010 */
011 public class CSPValue extends Value {
012 /**
013 * Constructor
014 * @param variable parent variable
015 * @param value value (an integer between 0 .. number of values - 1 )
016 */
017 public CSPValue(Variable variable, int value) {
018 super(variable, value);
019 }
020
021 public String getName() { return String.valueOf(toInt()); }
022 }