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

org.tweetyproject.commons.Reasoner Maven / Gradle / Ivy

The newest version!
/*
 *  This file is part of "TweetyProject", a collection of Java libraries for
 *  logical aspects of artificial intelligence and knowledge representation.
 *
 *  TweetyProject is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License version 3 as
 *  published by the Free Software Foundation.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this program. If not, see .
 *
 *  Copyright 2018 The TweetyProject Team 
 */
package org.tweetyproject.commons;

/**
 * The general interface for objects that are able to query a belief base
 * with some formula.
 * 
 * @author Matthias Thimm
 *
 * @param  the type of output to a query
 * @param  the belief base type that can be queried
 * @param  the type of formulas that can be queries
 */
public interface Reasoner {

	/**
	 * Queries the given belief base for the given formula. 
	 * @param beliefbase a belief base
	 * @param formula a formula
	 * @return the answer to the query
	 */
	public O query(B beliefbase, F formula);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy