public class Vampire extends InferenceEngine
| Modifier and Type | Class and Description |
|---|---|
static class |
Vampire.VampireFactory |
InferenceEngine.EngineFactory| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
assertFormula(java.lang.String formula)
Add an assertion.
|
static InferenceEngine.EngineFactory |
getFactory() |
static Vampire |
getNewInstance(java.lang.String kbFileName)
This static factory method returns a new Vampire instance.
|
static Vampire |
getNewInstanceWithFormulas(java.lang.Iterable formulaSource) |
static void |
main(java.lang.String[] args)
A simple test.
|
java.lang.String |
submitQuery(java.lang.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(java.lang.String kbFileName)
kbFileName - The complete (absolute) pathname of the KB
file that will be used to populate the inference engine
instance with assertions.java.io.IOException - should not normally be thrown unless either
Vampire executable or database file name are incorrectpublic static Vampire getNewInstanceWithFormulas(java.lang.Iterable formulaSource)
public java.lang.String assertFormula(java.lang.String formula)
throws java.io.IOException
assertFormula in class InferenceEngineformula - asserted formula in the KIF syntaxjava.io.IOException - should not normally be thrownpublic void terminate()
throws java.io.IOException
terminate in class InferenceEnginejava.io.IOException - should not normally be thrownpublic java.lang.String submitQuery(java.lang.String formula,
int timeLimit,
int bindingsLimit)
throws java.io.IOException
submitQuery in class InferenceEngineformula - query in the KIF syntaxtimeLimit - time limit for answering the query (in seconds)bindingsLimit - limit on the number of bindingsjava.io.IOException - should not normally be thrownpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception