| |
|
| test.org.mandarax.reference.MandaraxTestCase test.org.mandarax.reference.TestInferenceEngine test.org.mandarax.reference.TestInferenceEngine7
TestInferenceEngine7 | public class TestInferenceEngine7 extends TestInferenceEngine (Code) | | Same as FamilySample6, but use a JClauseSet to build the notEquals dynamically
Note that this example does not run correctly in an applet environment using
the default security settings since the dynamic invokation of a java method
leads to a security exception. Since this exception is captured the program continues
but the knowledge base does not contain all facts required
Run this sample in an application environment!
See Also: test.org.mandarax.reference.TestInferenceEngine6 author: Jens Dietrich version: 3.4 <7 March 05> since: 1.1 |
TestInferenceEngine7 | public TestInferenceEngine7(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 |
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 |
getPersonName | String getPersonName()(Code) | | Get the name of the person we are looking for.
More precisely, this is the name of the person expected to
replace the query variable as a result of the query.
the name of the person |
getQuery | public Query getQuery()(Code) | | Get the query.
a query |
|
|
|