All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.metacsp.spatial.reachability.ConfigurationVariable Maven / Gradle / Ivy

There is a newer version: 1.3.5
Show newest version
package org.metacsp.spatial.reachability;

import org.metacsp.framework.ConstraintSolver;
import org.metacsp.framework.Domain;
import org.metacsp.framework.Variable;

public class ConfigurationVariable extends Variable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -3333917390676953990L;
	private Domain dom;
	protected ConfigurationVariable(ConstraintSolver cs, int id) {
		super(cs, id);
		setDomain(new ConfigurationDomain(this));
	}

	@Override
	public int compareTo(Variable arg0) {
		
		return this.getID() - arg0.getID();
	}

	@Override
	public Domain getDomain() {
		// TODO Auto-generated method stub
		return dom;
	}

	@Override
	public void setDomain(Domain d) {
		this.dom = d;
		
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return this.getClass().getSimpleName() + " " + this.id + " " + this.getDomain();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy