|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--QasmTextUI
This class was extracted (rewriten) from another package to server as a test program for daml4jess package. It supports the following commands:
Nested Class Summary | |
protected static class |
QasmTextUI.QasmCmdReader
Read & parse command line input into commands. |
static class |
QasmTextUI.QasmCommand
QASM command object class. |
Field Summary | |
protected Daml4Jess |
d4j_
|
static java.lang.String |
QASM_CONFIG_KEY
|
Constructor Summary | |
QasmTextUI(Daml4Jess d4j)
Constructor. |
Method Summary | |
protected void |
batch(java.lang.String batchFile)
Process batch command, that is, to execute a list of commands in the given file. |
protected void |
doWork()
Get input user and take appropriate actions. |
protected void |
dump(java.lang.String dumpFile)
Dump the knowledge base (rules & facts) to the given file. |
protected void |
handleCmd(QasmTextUI.QasmCommand cmd)
Handle the given qasm command. |
static void |
main(java.lang.String[] args)
Usage: java -DQasmConfig= |
protected void |
processInput(QasmTextUI.QasmCmdReader cmdReader)
Get input from user and take appropriate actions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String QASM_CONFIG_KEY
protected Daml4Jess d4j_
Constructor Detail |
public QasmTextUI(Daml4Jess d4j)
Method Detail |
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
protected void doWork() throws java.io.IOException
java.io.IOException
protected void processInput(QasmTextUI.QasmCmdReader cmdReader)
protected void handleCmd(QasmTextUI.QasmCommand cmd)
protected void batch(java.lang.String batchFile) throws java.io.IOException
java.io.IOException
protected void dump(java.lang.String dumpFile) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |