Class | Description |
---|---|
BackEnd | |
BackEnd.Record | |
DataSourceExample |
An array and an ArrayList of TermModel to feed some tutorial examples
|
FileProcessor |
A fictional file filter to exemplify how it can be called from the logic side in a number of ways.
|
HelloRemote |
In order to run this you need to:
- Install/copy XSB Prolog and interprolog.xwam to the remote machines
- Create an interprolog login in each machine, with permissions to run ssh, and with passphrase configured
Test the above first by running on your machine (the one with the Java app):
ssh interprolog@remotehost 'PathToXSBexecutable'
You should enter an interactive XSB session, without being asked a password.
|
HelloRemote2 |
In order to run this you need to:
- Install/copy XSB Prolog to the remote machines, Java JRE as well as interprolog.jar
- Execute the interprolog daemon on the remote machine with
java -classpath interprolog.jar com.declarativa.interprolog.remote.PrologServer XSBpath
...and take note of the IP/port being listened to
- On the client machine you need only Java JRE and interprolog.jar
java -classpath interprolog.jar com.declarativa.interprolog.examples.HelloRemote2 IP port
Example output:
....
|
HelloWindow |
From Prolog in a InterProlog listener window:
1) assert( (greetat(TextID) :- javaMessage( TextID, setText(string('Hello world!')) )) ).
|
HelloWindow2 |
Example for Java-side UI construction, with event handler setup on the Prolog side; the Java part knows nothing about event handling.
|
HelloWorld | |
PerformanceTester |
Run some tests regarding data passing throughput (bytes/second); tests in the InterProlog
test suit already measure performance for number of calls/second
walltime in Prolog (cputime not reliable??), walltime in Java!!!
|
SudokuWindow |
A window showing a Sudoku puzzle board, with the ability to edit it, save it to a Prolog text file, restore (open) it from either a
file or PROLOG memory, and to solve it.
|