| test.org.mandarax.reference.MandaraxTestCase test.org.mandarax.reference.TestInferenceEngineNAF
All known Subclasses: test.org.mandarax.reference.TestInferenceEngineNAF2, test.org.mandarax.reference.TestInferenceEngineNAF3, test.org.mandarax.reference.TestInferenceEngineNAF7, test.org.mandarax.reference.TestInferenceEngineNAF1, test.org.mandarax.reference.TestInferenceEngineNAF8, test.org.mandarax.reference.TestInferenceEngineNAF6, test.org.mandarax.reference.TestInferenceEngineNAF4, test.org.mandarax.reference.TestInferenceEngineNAF5,
TestInferenceEngineNAF | abstract public class TestInferenceEngineNAF extends MandaraxTestCase (Code) | | An abstract test case class to test NAF (negation of failure) related features of an inference engine.
author: Jens Dietrich version: 3.4 <7 March 05> since: 2.0 |
QUERY_VARIABLE | final public static String QUERY_VARIABLE(Code) | | |
TestInferenceEngineNAF | public TestInferenceEngineNAF(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 | abstract public void feedKnowledgeBase(KnowledgeBase knowledge)(Code) | | Populate the knowledge base.
Parameters: knowledge - the knowledge base |
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.
java.lang.String |
getExpected | abstract public String getExpected()(Code) | | Get the expected object, or null if no result is expected
a query |
getQuery | abstract public Query getQuery()(Code) | | Get a query. The query should use the query variable QUERY_VARIABLE!
a query |
setUp | protected void setUp()(Code) | | Sets up the fixture.
|
testInferenceEngine | public void testInferenceEngine()(Code) | | Run the test.
|
toString | public String toString()(Code) | | Convert this object to a string.
the string representation of the object |
|
|