kaos.robots.capabilities.impl
Class CommunicationsImpl
java.lang.Object
kaos.robots.capabilities.impl.CommunicationsImpl
- All Implemented Interfaces:
- Communications
public class CommunicationsImpl
- extends java.lang.Object
- implements Communications
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sender
protected KAoSAgentDescription sender
_logger
protected Logger _logger
CommunicationsImpl
public CommunicationsImpl(KAoSAgentDescription senderAgentDesc)
- Parameters:
senderAgentDesc
- - agent description for the sender of communications from this instance
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 KAoSmessageContent
- - any Serializable
- Throws:
DirectoryFailure
SearchException
NotLocatableException
TransportFailure
java.lang.Exception