projectinfosearch
Interface Agent

All Known Implementing Classes:
AgentObject

public interface Agent

Interface which must be implemented by AgentObject s


Method Summary
 void agentArrived(AgentServer srv, java.net.InetAddress srvInetAddr, int serverPort)
          An agent server invokes this method.
 

Method Detail

agentArrived

public void agentArrived(AgentServer srv,
                         java.net.InetAddress srvInetAddr,
                         int serverPort)
An agent server invokes this method. It is used to tell an agent that he is successfully arrived at a server and is ready to run. This method should invoke the method start of the object that represents the agent.
Parameters:
srv - is an object representing an AgentServer where the AgentObject currently lives.
srvInetAddress - is the InetAddress of the AgentServer where the AgentObject currently lives.
serverPort - is the serverPort number of the AgentServer where the AgentObject currently lives.