springs.communication.sockets
Class SocketAgentSender

java.lang.Object
  |
  +--springs.communication.sockets.SocketAgentSender

public class SocketAgentSender
extends java.lang.Object

An agent sender implemented using sockets.

Author:
Sergio Ilarri Artigas

Constructor Summary
SocketAgentSender()
           
 
Method Summary
static boolean sendAgent(java.lang.String host, int port, springs.agent.SpringsAgent agent)
          This method sends to a certain port in a certain machine the object that is passed to the method as an argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketAgentSender

public SocketAgentSender()
Method Detail

sendAgent

public static boolean sendAgent(java.lang.String host,
                                int port,
                                springs.agent.SpringsAgent agent)
                         throws java.io.IOException
This method sends to a certain port in a certain machine the object that is passed to the method as an argument.

Parameters:
host - the target host.
port - the target port.
agent - the agent.
Returns:
a boolean indicating whether the communication was successful.
Throws:
java.io.IOException - if error.
See Also:
IOException