ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/agents/HandlerFactory.java
Revision: 1.1
Committed: Fri May 4 02:04:35 2001 UTC (23 years, 6 months ago) by ajm
Branch: MAIN
CVS Tags: HEAD
Error occurred while calculating annotation data.
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
3 //---IMPORTS---
4 import java.io.IOException;
5 import java.net.Socket;
6
7 /**
8 * A simple for factories which produce agent handlers
9 *
10 * @author $Author: tdb1 $
11 * @version $Id: TemplateClass.java,v 1.11 2001/03/22 21:50:41 tdb1 Exp $
12 */
13 interface HandlerFactory {
14
15 //---FINAL / FINAL STATIC ATTRIBUTES---
16
17 //---STATIC METHODS---
18
19 //---CONSTRUCTORS---
20
21 //---PUBLIC METHODS---
22
23 /**
24 * Returns the name of this handler, normally the name
25 * indicates the type of handler.
26 */
27 public String getName();
28
29 /**
30 * Creates an appropriate agent handler and returns it as
31 * a generic Handler
32 */
33 public Handler newHandler(Socket socket) throws IOException;
34
35 //---PRIVATE/PROTECTED METHODS---
36
37 //---ACCESSOR/MUTATOR METHODS---
38
39 //---ATTRIBUTES---
40
41 //---STATIC ATTRIBUTES---
42
43 }