AgentBase   AgentBase for SICStus
Components for Internet Programming
Version 2001-0.2-alpha

AgentBase Home > examples: jeval/multi_eval.pl

  OVERVIEW
  Introduction
Download
Installation
FAQ

  EXAMPLES
  Web Server + CGI
Prolog + Java
Prolog + Java Applets
Applet Logic Monitor
Query-Eval via Telnet

  COMPONENTS
  Generic Server
HTTP Support
HTML Support
JEval Java Interface
Utilities

  RELATED
  SICStus Prolog Home
AgentBase 0.1-alpha


Page Formatted for Printing

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.
For more information about AgentBase please email agentbase@sics.se.