| java.lang.Object test.org.mandarax.performance.PerformanceTest1
PerformanceTest1 | public class PerformanceTest1 implements PerformanceTest(Code) | | Performance test based on a binary tree of a certain depth.
The number of clauses in the kb is SUM(i=1..DEPTH)2^i + 2^N
author: Jens Dietrich version: 3.4 <7 March 05> since: 2.1 |
Method Summary | |
public synchronized int | getDepth() Get the tree depth (if kb is organized as tree, otherwise just return -1). | public synchronized int | getKBSize() Get the size of the knowledge base used. | public synchronized int | getNumberOfResults() Get the number of results computed. | public synchronized long | getTime() Get the time needed to run the test. | public static void | main(String args) Run a performance test. | public synchronized void | release() Release the test. | public synchronized void | run(InferenceEngine ie, boolean one, boolean logOn, PrintStream out) Run the test. |
QUERY_VARIABLE | final public static String QUERY_VARIABLE(Code) | | |
PerformanceTest1 | public PerformanceTest1()(Code) | | Constructor.
|
PerformanceTest1 | public PerformanceTest1(int depth)(Code) | | Constructor.
Parameters: depth - the kb tree depth |
getDepth | public synchronized int getDepth()(Code) | | Get the tree depth (if kb is organized as tree, otherwise just return -1).
the depth of the kb tree |
getKBSize | public synchronized int getKBSize()(Code) | | Get the size of the knowledge base used.
the kb size |
getNumberOfResults | public synchronized int getNumberOfResults()(Code) | | Get the number of results computed.
Parameters: the - number of results |
getTime | public synchronized long getTime()(Code) | | Get the time needed to run the test.
Parameters: a - long value (the millis) |
main | public static void main(String args)(Code) | | Run a performance test.
|
release | public synchronized void release()(Code) | | Release the test.
|
run | public synchronized void run(InferenceEngine ie, boolean one, boolean logOn, PrintStream out)(Code) | | Run the test.
Run the test.
Parameters: ie - the inference engine to be tested Parameters: one - whether to return only one result, or all results Parameters: logOn - whether to log or not Parameters: out - print stream used to output a test summary |
|
|