Algernon Software

org.algernon.test
Class BasicTest

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

public class BasicTest
extends Object

Tests basic execution functionality of Algernon. Does not test the compiler. Example:

 java  -classpath $HOME/projects:$ALGY/src:$PHARMGEN/lib/protege.jar org.algernon.test.BasicTest
 

See Also:
Algernon

Field Summary
protected  Algernon f_algy
           
protected  AlgernonKB f_kb
           
protected  Jatha f_lisp
           
protected  String m_assert1
           
protected  String m_create1
           
protected  String m_create2
           
protected  String m_create3
           
protected  String m_create4
           
protected  String m_create5a
           
protected  String m_create5b
           
protected  String m_create6a
           
protected  String m_create6b
           
protected  String m_create7a
           
protected  String m_create7b
           
protected  String m_create7c
           
protected  String m_create7d
           
protected  String m_create7e
           
protected  String m_defaultProject
           
protected  AlgernonKBSet m_kbset
           
protected  String m_PharmGKB_Beta
           
protected  String m_PharmGKB_Prod
           
protected  String m_query1
           
protected  String m_query2
           
protected  String m_query3
           
protected  String m_query4
           
protected  String m_query5
           
protected  String m_query6
           
protected  String m_rule1
           
protected  String m_rule2
           
protected  String m_rule3
           
 
Constructor Summary
BasicTest()
           
 
Method Summary
 void displayByGene(List genes)
           
 void displayByStudyCenter(List studyCenters)
           
 void displayResults(List studyCenters, List genes)
           
 void init()
          Reads in the parameters and tries to open the KB.
static void main(String[] args)
           
 void miscTests()
           
 void PharmGKBTest()
          This performs the same function as the misc.MHQuery1 program.
 void start()
          Executes some small code snippets.
 void stop()
          Halts the program nicely.
 void testAsk()
          Tests the Algernon "ask" command.
 void testCompile()
           
 void testCompile2()
           
 void testCompile3()
           
 void testCreate()
           
 void testLookup()
           
 void testNoCompile()
           
 void testRuleCompile1()
           
 void testRuleCompile2()
           
 void testTell()
          Tests the Algernon "tell" command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

f_kb

protected AlgernonKB f_kb

m_kbset

protected AlgernonKBSet m_kbset

f_algy

protected Algernon f_algy

f_lisp

protected Jatha f_lisp

m_defaultProject

protected String m_defaultProject

m_PharmGKB_Beta

protected String m_PharmGKB_Beta

m_PharmGKB_Prod

protected String m_PharmGKB_Prod

m_query1

protected String m_query1

m_query2

protected String m_query2

m_query3

protected String m_query3

m_query4

protected String m_query4

m_query5

protected String m_query5

m_query6

protected String m_query6

m_create1

protected String m_create1

m_create2

protected String m_create2

m_create3

protected String m_create3

m_create4

protected String m_create4

m_create5a

protected String m_create5a

m_create5b

protected String m_create5b

m_create6a

protected String m_create6a

m_create6b

protected String m_create6b

m_create7a

protected String m_create7a

m_create7b

protected String m_create7b

m_create7c

protected String m_create7c

m_create7d

protected String m_create7d

m_create7e

protected String m_create7e

m_assert1

protected String m_assert1

m_rule1

protected String m_rule1

m_rule2

protected String m_rule2

m_rule3

protected String m_rule3
Constructor Detail

BasicTest

public BasicTest()
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.


miscTests

public void miscTests()

testNoCompile

public void testNoCompile()

testCompile

public void testCompile()

testCompile2

public void testCompile2()

testCompile3

public void testCompile3()

testCreate

public void testCreate()

testLookup

public void testLookup()

testTell

public void testTell()
Tests the Algernon "tell" command.


testAsk

public void testAsk()
Tests the Algernon "ask" command.


PharmGKBTest

public void PharmGKBTest()
                  throws AlgernonException
This performs the same function as the misc.MHQuery1 program. It produces a report of database contents.

Throws:
AlgernonException

displayResults

public void displayResults(List studyCenters,
                           List genes)

displayByStudyCenter

public void displayByStudyCenter(List studyCenters)

displayByGene

public void displayByGene(List genes)

testRuleCompile1

public void testRuleCompile1()

testRuleCompile2

public void testRuleCompile2()

Algernon Software