kaos.core.service.boot.usecase
Class KAoSWrappedUsecase

java.lang.Object
  extended by kaos.core.service.boot.usecase.KAoSWrappedUsecase

public class KAoSWrappedUsecase
extends java.lang.Object

This is an example of how an agent can be easily registered in KAoS, use KAoS transport for sending/receiving messages and checking permissions for attempted actions. $Revision: 1.1 $


Field Summary
protected static java.lang.String CONVERSATION_FLAG
           
protected static java.io.PrintStream LOGGER
           
protected static java.lang.String[] STATEMENT
           
 
Constructor Summary
KAoSWrappedUsecase(java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
static void main(java.lang.String[] args)
           
 void receiveMessage(TransportMessage tmsg)
          Implements the receiveMessage method mandated by the MessageListener interface.
 void setKAoSAgentHelper(KAoSAgentHelper helper)
           
 
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

KAoSWrappedUsecase

public KAoSWrappedUsecase(java.lang.String name)
Method Detail

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.


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

setKAoSAgentHelper

public void setKAoSAgentHelper(KAoSAgentHelper helper)

main

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