myGrid
Class KAoSmyGridRepositoryWrapper

java.lang.Object
  extended by kaos.core.service.boot.KAoSAgent
      extended by myGrid.KAoSmyGridRepositoryWrapper
All Implemented Interfaces:
KAoSAgentHelper

public class KAoSmyGridRepositoryWrapper
extends KAoSAgent

$Revision: 1.1 $ An example of KAoS agent representing myGrid Repository


Field Summary
protected static java.io.PrintStream LOGGER
           
 
Fields inherited from class kaos.core.service.boot.KAoSAgent
_agentDescription, _agentDirectoryService, _agentNamingService, _agentNickname, _lctr, _logger, _messageTransportService, _name, _serviceRoot
 
Constructor Summary
KAoSmyGridRepositoryWrapper()
          Constructor
 
Method Summary
protected  KAoSAgentDescription establishAgentDescription(java.util.Vector domainNames)
          Method, which can define additional ontological types of the agent, define its domain
 void receiveMessage(TransportMessage tmsg)
          Implements the receiveMessage method mandated by the MessageListener interface.
 
Methods inherited from class kaos.core.service.boot.KAoSAgent
acquireAgentDirectoryService, acquireAgentName, acquireAgentNamingService, acquireMessageTransportService, assertFalse, assertTrue, bindToMessageTransportService, checkPermission, createTransportMessage, equals, findAgentDescriptionForID, findAgentDescriptionForNickname, getAgentID, getKAoSAgentDescription, hashCode, initialize, logMessage, logMessage, main, printTransportMessage, sendMessage, verifyRegistration
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static final java.io.PrintStream LOGGER
Constructor Detail

KAoSmyGridRepositoryWrapper

public KAoSmyGridRepositoryWrapper()
Constructor

Method Detail

establishAgentDescription

protected KAoSAgentDescription establishAgentDescription(java.util.Vector domainNames)
Method, which can define additional ontological types of the agent, define its domain

Overrides:
establishAgentDescription in class KAoSAgent
Returns:
an KAoSAgentDescription for this KAoSAgent.
See Also:
AgentDescription, AgentDirectoryService#createAgentDescription, "JAS Specification, Section(s) 2.2.2.6, 4.5.1"

receiveMessage

public void receiveMessage(TransportMessage tmsg)
Implements the receiveMessage method mandated by the MessageListener interface. This method simply prints the incoming TransportMessage to System.out and send ack to the sender.

Overrides:
receiveMessage in class KAoSAgent
See Also:
MessageListener, TransportMessage