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
-
file
-
-
linda
-
-
messages
-
-
FileBasedClient(File, String, int)
- Initialise the client to read from the given file.
-
run()
- The main execution of the thread.
file
File file
linda
LindaClient linda
messages
Vector messages
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
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