public class EProver extends Object
| Constructor and Description |
|---|
EProver(String executable)
Create a running instance of EProver based on existing batch
specification file.
|
EProver(String executable,
String kbFile)
Create a new batch specification file, and create a new running
instance of EProver.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addBatchConfig(String inputFilename,
int timeout)
Update batch specification file.
|
String |
assertFormula(String formula)
Add an assertion for inference.
|
boolean |
assertFormula(String userAssertionTPTP,
KB kb,
EProver eprover,
ArrayList<Formula> parsedFormulas,
boolean tptp)
Add an assertion for inference.
|
static void |
main(String[] args)
A simple test.
|
String |
submitQuery(String formula,
KB kb)
Submit a query.
|
void |
terminate()
Terminate this instance of EProver.
|
static void |
writeBatchConfig(String inputFilename,
int timeout)
Create a new batch specification file.
|
public EProver(String executable, String kbFile) throws IOException
executable - A File object denoting the platform-specific
EProver executable.kbFile - A File object denoting the initial knowledge base
to be loaded by the EProver executable.IOException - should not normally be thrown unless either
EProver executable or database file name are incorrect
e_ltb_runner -- interactive LTBSampleInput-AP.txtpublic EProver(String executable) throws IOException
executable - A File object denoting the platform-specific
EProver executable.IOExceptionpublic static void writeBatchConfig(String inputFilename, int timeout)
inputFilename - contains TPTP assertionstimeout - time limit in Epublic static void addBatchConfig(String inputFilename, int timeout)
inputFilename - contains TPTP assertionstimeout - time limit in Epublic String assertFormula(String formula)
formula - asserted formula in the KIF syntaxIOException - should not normally be thrownpublic boolean assertFormula(String userAssertionTPTP, KB kb, EProver eprover, ArrayList<Formula> parsedFormulas, boolean tptp)
userAssertionTPTP - asserted formula in the TPTP syntaxkb - Knowledge baseeprover - an instance of EProverparsedFormulas - a lit of parsed formulas in KIF syntaxtptp - convert formula to TPTP if tptp = truepublic void terminate()
throws IOException
IOException - should not normally be thrownpublic String submitQuery(String formula, KB kb)
formula - query in the KIF syntaxkb - current knowledge baseIOException - should not normally be thrownCopyright © 2015. All rights reserved.