public class Vampire extends InferenceEngine
| Modifier and Type | Class and Description |
|---|---|
static class |
Vampire.VampireFactory |
InferenceEngine.EngineFactory| Modifier and Type | Method and Description |
|---|---|
String |
assertFormula(String formula)
Add an assertion.
|
static InferenceEngine.EngineFactory |
getFactory() |
static Vampire |
getNewInstance(String kbFileName)
This static factory method returns a new Vampire instance.
|
static Vampire |
getNewInstanceWithFormulas(Iterable formulaSource) |
static void |
main(String[] args)
A simple test.
|
String |
submitQuery(String formula,
int timeLimit,
int bindingsLimit)
Submit a query.
|
void |
terminate()
Terminate this instance of Vampire.
|
public static InferenceEngine.EngineFactory getFactory()
public static Vampire getNewInstance(String kbFileName)
kbFileName - The complete (absolute) pathname of the KB
file that will be used to populate the inference engine
instance with assertions.IOException - should not normally be thrown unless either
Vampire executable or database file name are incorrectpublic String assertFormula(String formula) throws IOException
assertFormula in class InferenceEngineformula - asserted formula in the KIF syntaxIOException - should not normally be thrownpublic void terminate()
throws IOException
terminate in class InferenceEngineIOException - should not normally be thrownpublic String submitQuery(String formula, int timeLimit, int bindingsLimit) throws IOException
submitQuery in class InferenceEngineformula - query in the KIF syntaxtimeLimit - time limit for answering the query (in seconds)bindingsLimit - limit on the number of bindingsIOException - should not normally be thrownCopyright © 2015. All rights reserved.