Package com.articulate.sigma
Class InferenceEngine
java.lang.Object
com.articulate.sigma.InferenceEngine
- Direct Known Subclasses:
SInE
- Author:
- Adam Pease
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringassertFormula(String formula) Add an assertion.abstract StringsubmitQuery(String formula, int timeLimit, int bindingsLimit) Submit a query.voidTerminates this instance of InferenceEngine.
-
Constructor Details
-
InferenceEngine
public InferenceEngine()
-
-
Method Details
-
submitQuery
public abstract String submitQuery(String formula, int timeLimit, int bindingsLimit) throws IOException Submit a query.- Parameters:
formula- query in the KIF syntaxtimeLimit- time limit for answering the query (in seconds)bindingsLimit- limit on the number of bindings- Returns:
- answer to the query (in the XML syntax)
- Throws:
IOException- should not normally be thrown
-
assertFormula
Add an assertion.- Parameters:
formula- asserted formula in the KIF syntax- Returns:
- answer to the assertion (in the XML syntax)
- Throws:
IOException- should not normally be thrown
-
terminate
Terminates this instance of InferenceEngine. Warning:After calling this functions no further assertions or queries can be done. Some inference engines might not need/support termination. In that case this method does nothing.- Throws:
IOException- should not normally be thrown
-