ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/agents/LoggerImpl.java
Revision: 1.1
Committed: Fri May 4 02:04:35 2001 UTC (22 years, 11 months ago) by ajm
Branch: MAIN
CVS Tags: HEAD
Log Message:
Loads of new framework but far from complete.

The BasicAgent class is as it says, a basic agent, with ability to be run from the command line to fire it into an agentstation.

AgentStations now have support for adding and removing agents and support for multiple listeners.  Also initial support for peer agent stations.  Attempted support at peer -> peer agent transfer, but run into problems.

Still no bytecode transfer, but location and method has been figured out.

The AgentSystem class is now the bootstrap class for an agent station.  It brings up the AgentStation (which is now singleton) and the Logger (also singleton - using standard i-scream logging techniques).  It is possible to specify a peer station that the booting agent station should connect to.

Initial TODO:

	agent class loader
	agent bytecode transfer
	solve peer -> peer problems - possibly by creating extra socket to send agent, but shouldn't really be needed

File Contents

# Content
1 //---PACKAGE DECLARATION---
2 //package uk.org.iscream.core;
3
4 //---IMPORTS---
5
6 /**
7 * The LoggerImpl is an interface which any implementation for the
8 * Logging system should implement. This ensures that it fits in
9 * with the LoggerServant which will be attached to the CORBA system.
10 *
11 * @author $Author: tdb1 $
12 * @version $Id: LoggerImpl.java,v 1.6 2001/03/14 23:25:29 tdb1 Exp $
13 */
14 public interface LoggerImpl {
15
16 //---FINAL ATTRIBUTES---
17
18 //---STATIC METHODS---
19
20 //---CONSTRUCTORS---
21
22 //---PUBLIC METHODS---
23
24 /**
25 * The write() method takes a line of text, pre-formatted
26 * and outputs it using a method defined by the actual
27 * implementation. The verbosity is given in case the
28 * implementation wishes to utilise it in the layout -
29 * eg. a different colour or font.
30 *
31 * @param line A line of formatted text to be logged
32 * @param verbosity the verbosity of this message
33 */
34 public void write(String line, int verbosity);
35
36 //---PRIVATE/PROTECTED METHODS---
37
38 //---ACCESSOR/MUTATOR METHODS---
39
40 //---ATTRIBUTES---
41
42 //---STATIC ATTRIBUTES---
43
44 }
45