public class NativeEngine extends AbstractNativeEngine
find your own Java home; for example from a subprocess listener window: java('java.lang.System',string(JAVA_HOME),getProperty(string('java.home'))). then (using my own home at the moment): export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home /configure ./makexsb ./makexsb dynmodule
JNIinSameThread
firstJavaMessageName, interPrologFileLoaded, nl, prologBinDirectoryOrCommand
MAX_INT_VALUE, MIN_INT_VALUE, version
Constructor and Description |
---|
NativeEngine() |
NativeEngine(String XSB_BIN_DIR) |
NativeEngine(String XSB_BIN_DIR,
boolean debug) |
NativeEngine(String XSB_BIN_DIR,
boolean debug,
boolean loadFromJar) |
NativeEngine(String XSB_BIN_DIR,
String[] XSB_ARGS,
boolean debug,
boolean loadFromJar)
The XSB dll must be in a directory mentioned in the java.library.path property
(e.g., Windows PATH) so the Java loader finds it.
|
Modifier and Type | Method and Description |
---|---|
boolean |
realCommand(String s)
Implementation of a simple parameterless Prolog goal; does not support recursive nor multithreaded operation, use command instead
|
void |
setDebug(boolean d)
Show (or hide) debug messages, both Java and Prolog side, cf.
|
void |
shutdown()
Release Prolog engine resources, making it unusable
|
deterministicGoal
abortTasks, add_lib_dir, addPrologEngineListener, addSoftwareLibrary, addSoftwareLibrary, assignableType, command, command, command, consultAbsolute, consultAbsolute, consultFromPackage, consultFromPackage, consultRelative, createTempDirectory, currentTimeSecs, deleteAll, deleteTempFiles, deterministicGoal, deterministicGoal, deterministicGoal, deterministicGoal, deterministicGoalJSON, doCallback, endAllTasks, exec, executingOnJavaSide, findConstructor, findMethod, firstJavaMessage, getImplementationPeer, getInterprologPath, getJarDirectory, getJarDirectory, getLoadFromJar, getPrologBaseDirectory, getPrologNumericVersion, getPrologVersion, getRealJavaObject, getRealJavaObject, getRealJavaObject, getThePrologListener, goal, goal, handleCallback, hasPrologExtension, inPrologShell, interrupt, interruptTasks, is64WindowsOS, isAllowSimultaneousThreads, isAvailable, isDebug, isIdle, isLinuxOS, isMacOS, isPaused, isProfiling, isSerializable, isShutingDown, isThreadedCallbacks, isWindowsOS, lastSolutionUndefined, load_dynAbsolute, load_dynRelative, loop, loop2, makeInvisible, printAllStackTraces, printAllStackTraces, printBindings, printStackTrace, profilingMessage, progressMessage, progressMessage, prologBinToBaseDirectory, prologCanWork, prologEnteredBreak, prologResumedComputation, prologReturnedToTopLevel, registerJavaObject, removePrologEngineListener, serverFileSeparatorChar, serverIsWindows, setAllowSimultaneousThreads, setProfiling, setThreadedCallbacks, setTimedCallIntervall, shortClassName, stop, teachMoreObjects, teachMoreObjects, teachMoreObjects, teachOneObject, toString, unescapedFilePath, unregisterJavaObject, unregisterJavaObject, unregisterJavaObjects, waitUntilAvailable, waitUntilIdle
public NativeEngine()
public NativeEngine(String XSB_BIN_DIR)
public NativeEngine(String XSB_BIN_DIR, boolean debug)
public NativeEngine(String XSB_BIN_DIR, boolean debug, boolean loadFromJar)
public NativeEngine(String XSB_BIN_DIR, String[] XSB_ARGS, boolean debug, boolean loadFromJar)
XSB_BIN_DIR
- File path to directory containing the Prolog binaryXSB_ARGS
- Args for finer control initializing XSBdebug
- if true, print progress messages to aid debuggingloadFromJar
- if true, load Prolog initialization files from this classe's jar, else from a relative file directorypublic void setDebug(boolean d)
AbstractPrologEngine
setDebug
in interface PrologEngine
setDebug
in class AbstractPrologEngine
public void shutdown()
AbstractPrologEngine
shutdown
in interface PrologEngine
shutdown
in class AbstractPrologEngine
public boolean realCommand(String s)
AbstractPrologEngine
realCommand
in class AbstractPrologEngine
AbstractPrologEngine.command(String)