| java.lang.Object org.mandarax.reference.AbstractResolutionInferenceEngine org.mandarax.reference.ResolutionInferenceEngine
ResolutionInferenceEngine | public ResolutionInferenceEngine()(Code) | | Constructor.
|
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
This inference engines does not support retrieving multiple answers!
If requested, a runtime exception (java.lang.IllegalArgumentException )
is thrown indicating that the parameter (e.g. ALL ) is not valid.
See Also: ResolutionInferenceEngine.ONE See Also: ResolutionInferenceEngine.ALL the result set of the query Parameters: query - the query 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 |
|
|