| |
|
| test.org.mandarax.reference.MandaraxTestCase test.org.mandarax.reference.TestInferenceEngine4MultipleResults test.org.mandarax.reference.TestInferenceEngine4MultipleResults4
TestInferenceEngine4MultipleResults4 | public class TestInferenceEngine4MultipleResults4 extends TestInferenceEngine4MultipleResults (Code) | | Simple test using familiy relationships.
Similar to TestInferenceEngine4MultipleResults1, but with a cardinality constraint
specifying that only the first three results should be retrieved.
author: Jens Dietrich version: 3.4 <7 March 05> since: 1.1 |
TestInferenceEngine4MultipleResults4 | public TestInferenceEngine4MultipleResults4(KnowledgeBase aKnowledgeBase, InferenceEngine anInferenceEngine)(Code) | | Constructor.
Parameters: aKnowledgeBase - a new, uninitialized knowledge base that will be used Parameters: anInferenceEngine - the inference engine that will be tested |
feedKnowledgeBase | public void feedKnowledgeBase(KnowledgeBase knowledge)(Code) | | Add facts and rules to the knowledge base.
Parameters: knowledge - org.mandarax.kernel.KnowledgeBase |
getCardinalityConstraint | public int getCardinalityConstraint()(Code) | | Get the cardinality constraint (how many solutions
should be compouted). Default is InferenceEngine.ONE
the number of expected results |
getDescription | public String getDescription()(Code) | | Get a description of this test case.
This is used by the org.mandarax.demo
package to display the test cases.
a brief description of the test case |
getExpectedResults | public List getExpectedResults()(Code) | | Get the persons we are looking for.
the name of the person |
getQuery | public Query getQuery()(Code) | | Get the query.
a query |
|
|
|