com.agentfactory.cldc.p2pmts
Class DiscServer

java.lang.Object
  extended by com.agentfactory.cldc.p2pmts.DiscServer

public class DiscServer
extends java.lang.Object

When agents operate in a peer to peer manner in forming ad-hoc networks, discovery of the names of agents, addresses of agents, and addresses of agent platforms becomes an issue. The Discovery Server provides rudimentary yellow and white page services and has been designed to operate small scale devices. Agents in AFME can still avail of the standard large scale yellow and white page services of Agent Factory, but the discovery server is designed for use in situations when the entire multi-agent system (including supporting infrastructure) must operate on embedded devices.

Author:
Conor Muldoon

Field Summary
static byte MV
          A constant used to indicate that an agent has moved to a different platform.
static byte REG
          A constant used to indicate platform registration.
static byte REG_YP
          A constant used to indicate a yellow page registration.
static byte REQ_A
          A constant used to indicate a white page lookup or in other words an agent address request.
static byte REQ_P
          A constant used to indicate a platform address request.
static byte REQ_YP
          A constant used to indicate a yellow page lookup.
 
Method Summary
static void main(java.lang.String[] args)
          Creates an instance of the Discovery Server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REG

public static final byte REG
A constant used to indicate platform registration.

See Also:
Constant Field Values

MV

public static final byte MV
A constant used to indicate that an agent has moved to a different platform.

See Also:
Constant Field Values

REQ_P

public static final byte REQ_P
A constant used to indicate a platform address request.

See Also:
Constant Field Values

REQ_A

public static final byte REQ_A
A constant used to indicate a white page lookup or in other words an agent address request.

See Also:
Constant Field Values

REG_YP

public static final byte REG_YP
A constant used to indicate a yellow page registration.

See Also:
Constant Field Values

REQ_YP

public static final byte REQ_YP
A constant used to indicate a yellow page lookup.

See Also:
Constant Field Values
Method Detail

main

public static void main(java.lang.String[] args)
Creates an instance of the Discovery Server. The port number the server is to operate at must be specified as the first string in args.

Parameters:
args - an array of arguments.