Inheritance diagram for com::xsb::interprolog::NativeEngine:
Public Member Functions | |
NativeEngine (String startPrologCommand) | |
NativeEngine (String XSB_DIR, boolean debug) | |
void | setDebug (boolean d) |
void | shutdown () |
Object[] | deterministicGoal (String G, String OVar, Object[] objectsP, String RVars) |
boolean | isIdle () |
Protected Member Functions | |
native int | put_bytes (byte[] b, int size, int args, String jStr) |
native void | xsb_interrupt () |
void | startTopGoal () |
void | doInterrupt () |
boolean | realCommand (String s) |
byte[] | callback (byte[] in) |
Definition at line 16 of file NativeEngine.java.
|
The XSB dll must be in a directory in the Windows PATH so the Java loader finds it Definition at line 41 of file NativeEngine.java. References com::declarativa::interprolog::PrologEngine::command(), com::declarativa::interprolog::PrologEngine::consultFromPackage(), com::declarativa::interprolog::PrologEngine::numberOfInstances, com::declarativa::interprolog::PrologEngine::progressMessage(), put_bytes(), com::declarativa::interprolog::PrologEngine::registerJavaObject(), startTopGoal(), com::declarativa::interprolog::PrologEngine::teachBasicObjects(), com::declarativa::interprolog::PrologEngine::teachIPobjects(), and com::declarativa::interprolog::PrologEngine::tempDirectory. |
|
Accepts a serialized object in the argument and returns another; handleCallback does the actual work Definition at line 137 of file NativeEngine.java. References com::declarativa::interprolog::PrologEngine::handleCallback(), and com::declarativa::interprolog::PrologEngine::progressMessage(). |
|
Synchronously calls a Prolog goal. Only the first solution is considered. G should contain a syntactically correct Prolog term, without the trailing dot (.). Throws an IPAbortedException if a Prolog abort happens, and an IPInterruptedException if the interrupt() method was invoked.
Reimplemented from com::declarativa::interprolog::PrologEngine. Definition at line 130 of file NativeEngine.java. References com::declarativa::interprolog::PrologEngine::topGoalHasStarted. |
|
The engine is doing nothing Reimplemented from com::declarativa::interprolog::PrologEngine. Definition at line 165 of file NativeEngine.java. |
|
Returns the xsb_query result code Referenced by NativeEngine(). |
|
Implementation of a simple parameterless Prolog goal; does not support recursive nor multithreaded operation, use command instead
Implements com::declarativa::interprolog::PrologEngine. Definition at line 120 of file NativeEngine.java. |
|
Release Prolog engine resources, making it unusable Implements com::declarativa::interprolog::PrologEngine. Definition at line 112 of file NativeEngine.java. |
|
Calls the first Prolog goal in a background thread. That goal will return only if an interrupt or error occurs; this method should handle these conditions properly Definition at line 79 of file NativeEngine.java. References com::declarativa::interprolog::PrologEngine::abortTasks(), com::declarativa::interprolog::PrologEngine::firstJavaMessageName, com::declarativa::interprolog::PrologEngine::interrupting, com::declarativa::interprolog::PrologEngine::interruptTasks(), and com::declarativa::interprolog::PrologEngine::progressMessage(). Referenced by NativeEngine(). |
|
Simulates a ctrl-C Referenced by doInterrupt(). |