public class Jasper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Prolog |
getCaller()
Returns the Prolog interface corresponding to the SICStus runtime that
called us.
|
static void |
main(java.lang.String[] argv)
This is a small test function.
|
static Prolog |
newProlog()
Creates a
Prolog interface object. |
static Prolog |
newProlog(java.lang.String bootPath)
Creates a
Prolog interface object. |
static Prolog |
newProlog(java.lang.String[] argv,
java.lang.String bootPath,
java.lang.String savFile)
Creates a
Prolog interface object. |
public static Prolog getCaller()
public static Prolog newProlog() throws java.lang.InterruptedException
Prolog
interface object. Equivalent to
newProlog(null, null, null)
.java.lang.InterruptedException
public static Prolog newProlog(java.lang.String bootPath) throws java.lang.InterruptedException
Prolog
interface object. Equivalent to
newProlog(null, bootPath, null)
.bootPath
- The path where SICStus should look for its start-up
files.java.lang.InterruptedException
public static Prolog newProlog(java.lang.String[] argv, java.lang.String bootPath, java.lang.String savFile) throws java.lang.InterruptedException
Prolog
interface object. Starts a server
thread which will serve that Prolog
. The server
thread takes care of all interaction with the Prolog runtime, making sure
that all calls to the Prolog runtime will be done from one and the same
thread.argv
- Argument vector to the emulator.bootPath
- The path where SICStus should look for its start-up
files.savFile
- A .sav-file to restore. See
SICStus.restore(java.lang.String)
java.lang.InterruptedException
public static void main(java.lang.String[] argv)