| test.org.mandarax.reference.MandaraxTestCase test.org.mandarax.reference.TestInferenceEngineUseMath
All known Subclasses: test.org.mandarax.reference.TestInferenceEngine11, test.org.mandarax.reference.TestInferenceEngine17, test.org.mandarax.reference.TestInferenceEngine16, test.org.mandarax.reference.TestInferenceEngine13, test.org.mandarax.reference.TestInferenceEngine12, test.org.mandarax.reference.TestInferenceEngine14, test.org.mandarax.reference.TestInferenceEngine15,
TestInferenceEngineUseMath | abstract public class TestInferenceEngineUseMath extends MandaraxTestCase (Code) | | An abstract test case class to test features of an inference engine.
Similar to TestInferenceEngine, but tests are based on (integer) arithmetics.
See Also: TestInferenceEngin author: Jens Dietrich version: 3.4 <7 March 05> since: 1.9.1 |
QUERY_VARIABLE | final public static String QUERY_VARIABLE(Code) | | |
TestInferenceEngineUseMath | public TestInferenceEngineUseMath(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 |
getExpectedNumber | abstract int getExpectedNumber()(Code) | | Get the expected number.
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 |
|
|