myGrid
Class KAoSmyGridEventHandlerWrapper
java.lang.Object
kaos.core.service.boot.KAoSAgent
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
|
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 |
LOGGER
protected static final java.io.PrintStream LOGGER
KAoSmyGridEventHandlerWrapper
public KAoSmyGridEventHandlerWrapper()
- Empty constructor
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