kaos.autonomy.test
Class TestRobot

java.lang.Object
  extended by kaos.core.service.boot.KAoSAgent
      extended by kaos.autonomy.test.TestRobot
All Implemented Interfaces:
KAoSAgentHelper

public class TestRobot
extends KAoSAgent


Field Summary
 
Fields inherited from class kaos.core.service.boot.KAoSAgent
_agentDescription, _agentDirectoryService, _agentNamingService, _agentNickname, _lctr, _logger, _messageTransportService, _name, _serviceRoot
 
Constructor Summary
TestRobot()
           
 
Method Summary
protected  TransportMessage buildTransportMessage(AgentDescription agt, java.lang.Object content)
           
protected  AgentDescription findAgent(java.lang.String agentName)
           
static void main(java.lang.String[] args)
           
 void newEvent(java.lang.String toWhom, java.lang.String event)
           
 void receiveMessage(TransportMessage tmsg)
          Implements the receiveMessage method mandated by the MessageListener interface.
protected  void sendMessageToAgent(java.lang.String toWhom, java.lang.Object content)
           
 void setCapabilities()
           
 void updatePropertyValue(Property property)
           
 
Methods inherited from class kaos.core.service.boot.KAoSAgent
acquireAgentDirectoryService, acquireAgentName, acquireAgentNamingService, acquireMessageTransportService, assertFalse, assertTrue, bindToMessageTransportService, checkPermission, createTransportMessage, equals, establishAgentDescription, findAgentDescriptionForID, findAgentDescriptionForNickname, getAgentID, getKAoSAgentDescription, hashCode, initialize, logMessage, logMessage, printTransportMessage, sendMessage, verifyRegistration
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestRobot

public TestRobot()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

newEvent

public void newEvent(java.lang.String toWhom,
                     java.lang.String event)

sendMessageToAgent

protected void sendMessageToAgent(java.lang.String toWhom,
                                  java.lang.Object content)

findAgent

protected AgentDescription findAgent(java.lang.String agentName)

buildTransportMessage

protected TransportMessage buildTransportMessage(AgentDescription agt,
                                                 java.lang.Object content)

receiveMessage

public void receiveMessage(TransportMessage tmsg)
Description copied from class: KAoSAgent
Implements the receiveMessage method mandated by the MessageListener interface. This method prints the incoming TransportMessage to System.out.

Overrides:
receiveMessage in class KAoSAgent
See Also:
MessageListener, TransportMessage, "JAS Specification, Section(s) 3.4.2, 4.7.2"

setCapabilities

public void setCapabilities()

updatePropertyValue

public void updatePropertyValue(Property property)