All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class kraft.monitor.FileBasedClient

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----kraft.monitor.FileBasedClient

public class FileBasedClient
extends Thread
A Linja client that reads in a File made up of Prolog term structures. These structures will be "outed" to the Linda server one by one, and after a pause, are then "in"ed again. This class is used by KraftMonitor to load a 'batch file' of messages to be visualised by the Monitor. Linda makes duplicates of the messages so the client 'tidies up' after itself. NB: start() must be called to start the client working

Author:
Ted Francis
See Also:
KraftMonitor

Variable Index

 o file
 o linda
 o messages

Constructor Index

 o FileBasedClient(File, String, int)
Initialise the client to read from the given file.

Method Index

 o run()
The main execution of the thread.

Variables

 o file
 File file
 o linda
 LindaClient linda
 o messages
 Vector messages

Constructors

 o FileBasedClient
 FileBasedClient(File f,
                 String l_host,
                 int l_port)
Initialise the client to read from the given file. Connects to the linda server at l_host:l_port

Methods

 o run
 public void run()
The main execution of the thread. Reads lines from file until one is terminated by full stop, then outs the term to linda. Cleans up the messages afterwards.

Overrides:
run in class Thread

All Packages  Class Hierarchy  This Package  Previous  Next  Index