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

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

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

import org.metacsp.framework.BinaryConstraint;
import org.metacsp.framework.Constraint;

public class ReachabilityConstraint extends BinaryConstraint {

	private static final long serialVersionUID = 2249830531603923184L;
	public static enum Type {
		none,
		activityReachable,
		basePickingupReachable,
		baseplacingReachable
	}
	protected Type[] types;
	
	public ReachabilityConstraint(Type... types) {
		this.types = types;
		//this.isSensoryRelation = false;
	}
	
	@Override
	public String getEdgeLabel() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object clone() {
		return new ReachabilityConstraint(this.types);
	}

	@Override
	public boolean isEquivalent(Constraint c) {
		// TODO Auto-generated method stub
		return false;
	}
	public String toString() {
		String ret = "[";
		for (int i = 0; i < types.length; i++) {
			ret +="(" + this.getFrom() + ") --" + this.types[i] + "--> (" + this.getTo() + ")"; 
		}
		ret += "]";
		return ret;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy