Algernon Software

org.algernon.test
Class DBTest

java.lang.Object
  extended byorg.algernon.test.DBTest

public class DBTest
extends Object

Tests basic delete functionality of Algernon. Example:

 java -classpath ${CLASSES}:${PHARMGEN}/lib/protege.jar:${PHARMGEN}/lib/ojdbc14.jar org.algernon.test.DeleteTest
 

See Also:
Algernon

Field Summary
protected  Algernon m_algy
           
protected  AlgernonKB m_kb
           
 
Constructor Summary
DBTest()
           
 
Method Summary
static long getCurrentTime()
          Returns the current time in milliseconds.
static long getElapsedTime(long startTime)
          Returns the elapsed time since the startTime in milliseconds.
 void init()
          Reads in the parameters and tries to open the KB.
static void main(String[] args)
           
 void start()
          Executes some small code snippets.
 void stop()
          Halts the program nicely.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_kb

protected AlgernonKB m_kb

m_algy

protected Algernon m_algy
Constructor Detail

DBTest

public DBTest()
Method Detail

main

public static void main(String[] args)

init

public void init()
Reads in the parameters and tries to open the KB.


stop

public void stop()
Halts the program nicely.


start

public void start()
Executes some small code snippets.


getCurrentTime

public static long getCurrentTime()
Returns the current time in milliseconds. Useful for timing method calls.


getElapsedTime

public static long getElapsedTime(long startTime)
Returns the elapsed time since the startTime in milliseconds. Useful for timing method calls.


Algernon Software