| java.lang.Object org.mandarax.reference.DefaultInferenceEngine
DefaultInferenceEngine | public class DefaultInferenceEngine implements InferenceEngine(Code) | | Default inference engine. Instances are just wrappers. The actual inference engine is
the latest stable recommended implementation. This is to support users selecting the
right engine.
author: Jens Dietrich version: 3.4 <7 March 05> since: 2.1 |
query | public ResultSet query(Query query, org.mandarax.kernel.KnowledgeBase kb, int aCardinalityConstraint, int exceptionHandlingPolicy) throws InferenceException(Code) | | Answer a query, retrieve (multiple different) result.
The cardinality contraints describe how many results should be computed. It is either
-
ONE - indicating that only one answer is expected
-
ALL - indicating that all answers should be computed
-
an integer value greater than 0 indicating that this number of results expected
See Also: DefaultInferenceEngine.ONE See Also: DefaultInferenceEngine.ALL the result set of the query Parameters: query - the query clause Parameters: kb - the knowledge base used to answer the query Parameters: aCardinalityConstraint - the number of results expected Parameters: exceptionHandlingPolicy - one of the constants definied in this class (BUBBLE_EXCEPTIONS,TRY_NEXT) throws: an - InferenceException |
|
|