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

aima.core.logic.fol.Connectors Maven / Gradle / Ivy

Go to download

AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.

The newest version!
package aima.core.logic.fol;

/**
 * @author Ravi Mohan
 * 
 */
public class Connectors {
	public static final String AND = "AND";

	public static final String OR = "OR";

	public static final String NOT = "NOT";

	public static final String IMPLIES = "=>";

	public static final String BICOND = "<=>";

	public static boolean isAND(String connector) {
		return AND.equals(connector);
	}

	public static boolean isOR(String connector) {
		return OR.equals(connector);
	}

	public static boolean isNOT(String connector) {
		return NOT.equals(connector);
	}

	public static boolean isIMPLIES(String connector) {
		return IMPLIES.equals(connector);
	}

	public static boolean isBICOND(String connector) {
		return BICOND.equals(connector);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy