| test.org.mandarax.reference.MandaraxTestCase test.org.mandarax.reference.TestInferenceEngine
All known Subclasses: test.org.mandarax.reference.TestInferenceEngine8, test.org.mandarax.reference.TestInferenceEngine2, test.org.mandarax.reference.TestInferenceEngine5, test.org.mandarax.reference.TestInferenceEngine7, test.org.mandarax.reference.TestInferenceEngine1, test.org.mandarax.reference.TestInferenceEngine4, test.org.mandarax.reference.TestInferenceEngine10, test.org.mandarax.reference.TestInferenceEngine9, test.org.mandarax.reference.TestInferenceEngine6, test.org.mandarax.reference.TestInferenceEngine3,
TestInferenceEngine | abstract public class TestInferenceEngine extends MandaraxTestCase (Code) | | An abstract test case class to test features of an inference engine.
author: Jens Dietrich version: 3.4 <7 March 05> since: 1.1 |
QUERY_VARIABLE | final public static String QUERY_VARIABLE(Code) | | |
TestInferenceEngine | public TestInferenceEngine(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 |
getPersonName | abstract 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 | 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 |
|
|