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

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

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

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

public class ReachabilityContraintSolver extends ConstraintSolver {

	private static final long serialVersionUID = -2701427250433845929L;
	private int IDs = 0;
	public ReachabilityContraintSolver() {
		super(new Class[]{ReachabilityConstraint.class}, ConfigurationVariable.class);
		//this.setOptions(OPTIONS.AUTO_PROPAGATE);
	}

	@Override
	public boolean propagate() {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	protected boolean addConstraintsSub(Constraint[] c) {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	protected void removeConstraintsSub(Constraint[] c) {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected Variable[] createVariablesSub(int num) {
		ConfigurationVariable[] ret = new ConfigurationVariable[num];
		for (int i = 0; i < num; i++) ret[i] = new ConfigurationVariable(this, IDs++);
			return ret;
	}

	@Override
	protected void removeVariablesSub(Variable[] v) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void registerValueChoiceFunctions() {
		// TODO Auto-generated method stub
		
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy