kaos.core.service.boot.usecase
Class KAoSGuardedUsecase1

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

public class KAoSGuardedUsecase1
extends KAoSAgent

$Revision: 1.7 $


Field Summary
protected static java.lang.String CONVERSATION_FLAG
           
protected static java.io.PrintStream LOGGER
           
protected static java.lang.String[] STATEMENT
           
 
Fields inherited from class kaos.core.service.boot.KAoSAgent
_agentDescription, _agentDirectoryService, _agentNamingService, _agentNickname, _lctr, _logger, _messageTransportService, _name, _serviceRoot
 
Constructor Summary
KAoSGuardedUsecase1()
           
 
Method Summary
protected  KAoSAgentDescription establishAgentDescription(java.util.Vector domainNames)
          Creates a new KAoSAgentDescription for this KAoSAgent.
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

CONVERSATION_FLAG

protected static final java.lang.String CONVERSATION_FLAG
See Also:
Constant Field Values

STATEMENT

protected static final java.lang.String[] STATEMENT

LOGGER

protected static final java.io.PrintStream LOGGER
Constructor Detail

KAoSGuardedUsecase1

public KAoSGuardedUsecase1()
Method Detail

establishAgentDescription

protected KAoSAgentDescription establishAgentDescription(java.util.Vector domainNames)
Description copied from class: KAoSAgent
Creates a new KAoSAgentDescription for this KAoSAgent. Populates the description with various key-value pairs. KAoSAgentDescription extends the JAS AgentDescription in order to provide some KAoS-specific key-value pairs.

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.

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