public abstract class AbstractNativeEngine extends AbstractPrologEngine
Modifier and Type | Field and Description |
---|---|
static boolean |
JNIinSameThread
If true, all JNI calls (including the Prolog callback predicate/function) run in the same thread.
|
firstJavaMessageName, interPrologFileLoaded, nl, prologBinDirectoryOrCommand
MAX_INT_VALUE, MIN_INT_VALUE, version
Constructor and Description |
---|
AbstractNativeEngine(String XSB_BIN_DIR,
boolean debug,
boolean loadFromJar) |
Modifier and Type | Method and Description |
---|---|
Object[] |
deterministicGoal(String G,
String OVar,
Object[] objectsP,
String RVars)
Synchronously calls a Prolog goal.
|
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, realCommand, registerJavaObject, removePrologEngineListener, serverFileSeparatorChar, serverIsWindows, setAllowSimultaneousThreads, setDebug, setProfiling, setThreadedCallbacks, setTimedCallIntervall, shortClassName, shutdown, stop, teachMoreObjects, teachMoreObjects, teachMoreObjects, teachOneObject, toString, unescapedFilePath, unregisterJavaObject, unregisterJavaObject, unregisterJavaObjects, waitUntilAvailable, waitUntilIdle
public static final boolean JNIinSameThread
public AbstractNativeEngine(String XSB_BIN_DIR, boolean debug, boolean loadFromJar)
public Object[] deterministicGoal(String G, String OVar, Object[] objectsP, String RVars)
AbstractPrologEngine
deterministicGoal
in interface PrologEngine
deterministicGoal
in class AbstractPrologEngine
G
- Prolog goal termOVar
- Prolog variable that will be bound to objectsP arrayobjectsP
- Array of Java objects to pass to Prolog goal; nonserializable objects are encapsulated in InvisibleObject references, changing this arrayRVars
- Prolog list with object specifications, typically containing variables occurring in g.
If null a single binding will be returned, containing a TermModel object representing the goal term solutionAbstractPrologEngine.deterministicGoal(String)
,
AbstractPrologEngine.deterministicGoal(String,String)
,
AbstractPrologEngine.deterministicGoal(String,String,Object[])