myGrid
Class KAoSmyGridEventHandlerWrapper

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

public class KAoSmyGridEventHandlerWrapper
extends KAoSAgent

$Revision: 1.2 $ An example of KAoS agent representing myGrid EventHandler and checking obligations


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
KAoSmyGridEventHandlerWrapper()
          Empty constructor
 
Method Summary
protected  KAoSAgentDescription establishAgentDescription(java.util.Vector domainNames)
          Method, which can define additional ontological types of the agent, define its domain
static void main(java.lang.String[] args)
           
 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, 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

KAoSmyGridEventHandlerWrapper

public KAoSmyGridEventHandlerWrapper()
Empty 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

main

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