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

org.metacsp.spatial.geometry.GeometricConstraint Maven / Gradle / Ivy

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

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



public class GeometricConstraint extends BinaryConstraint{

	/**
	 * 
	 */
	private static final long serialVersionUID = -8113896844860210411L;
	public static enum Type {DC, INSIDE};
	
	private Type type;
	
	public GeometricConstraint(Type type){
		this.type = type;
	}

	public Type getType(){
		return type;
	}

	//Type.DC, Type.INSIDE,
	public static Type[][][] transitionTable = {
		{
			{Type.DC, Type.INSIDE},
			{Type.DC, Type.INSIDE}
		},
		{
			{Type.DC},
			{Type.INSIDE}
		}	
	};
	
	
	@Override
	public String getEdgeLabel() {
		return this.type.toString();
	}

	@Override
	public Object clone() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean isEquivalent(Constraint c) {
		// TODO Auto-generated method stub
		return false;
	}
	
	
	
	


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy