AgentBase AgentBase for SICStus Prolog
Swedish Institute of Computer Science
http://www.sics.se/isl/agentbase/


Example - Jeval - logic monitor

This is a simple example of communication between Java and Prolog where Prolog is the server and a Java applet is client. In this example multiple applets can access the same Prolog application and monitor the state of the server.

Instructions

1. Change directory to examples/jeval/ and start the example with

sicstus -l logic_jeval

Then enter start. to start the example.

2. Browse to the URL that was printed in 1 and you will get an applet page with 5 fields to enter logic expressions to monitor.

Note that this will open up your computer for others. Anyone that knows about this logic monitor can enter prolog terms that will be called - for example 'halt.' or 'system:system('format C:')'

Source Code

The code of the Jeval example logic_jeval.pl.


Copyright © 2001 SICS AB, All Rights Reserved.