kaos.robots.capabilities.impl
Class CommunicationsImpl

java.lang.Object
  extended by kaos.robots.capabilities.impl.CommunicationsImpl
All Implemented Interfaces:
Communications

public class CommunicationsImpl
extends java.lang.Object
implements Communications


Field Summary
protected  Logger _logger
           
protected  KAoSAgentDescription sender
           
 
Constructor Summary
CommunicationsImpl(KAoSAgentDescription senderAgentDesc)
           
 
Method Summary
 void CommunicationAction(java.util.HashMap properties)
           
 void sendMessageTo(java.lang.String receiverName, java.io.Serializable messageContent)
          Send a message to a specified agent that is registered with KAoS.
 void setSender(KAoSAgentDescription senderAgentDesc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sender

protected KAoSAgentDescription sender

_logger

protected Logger _logger
Constructor Detail

CommunicationsImpl

public CommunicationsImpl(KAoSAgentDescription senderAgentDesc)
Parameters:
senderAgentDesc - - agent description for the sender of communications from this instance
Method Detail

setSender

public void setSender(KAoSAgentDescription senderAgentDesc)

CommunicationAction

public void CommunicationAction(java.util.HashMap properties)
                         throws AbortActionException
Specified by:
CommunicationAction in interface Communications
Throws:
AbortActionException

sendMessageTo

public void sendMessageTo(java.lang.String receiverName,
                          java.io.Serializable messageContent)
                   throws DirectoryFailure,
                          SearchException,
                          NotLocatableException,
                          TransportFailure,
                          java.lang.Exception
Send a message to a specified agent that is registered with KAoS.

Parameters:
receiverName - - name recipient agent used to register with KAoS
messageContent - - any Serializable
Throws:
DirectoryFailure
SearchException
NotLocatableException
TransportFailure
java.lang.Exception