Class AgentServer

java.lang.Object
  |
  +--AgentServer

public class AgentServer
extends java.lang.Object


Constructor Summary
AgentServer(int port)
          Allocates an AgentServer object at the port port number.
 
Method Summary
static void main(java.lang.String[] args)
          Launches the Agent Server.
 AgentItf receiveAgent()
          Receives a new agent, either a newly created agent or a migrating mobile agent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentServer

public AgentServer(int port)
Allocates an AgentServer object at the port port number.
Parameters:
port - the port number at which the AgentServer is listening.
Method Detail

receiveAgent

public AgentItf receiveAgent()
Receives a new agent, either a newly created agent or a migrating mobile agent.
Returns:
the new agent.

main

public static void main(java.lang.String[] args)
Launches the Agent Server.