kaos.core.service.boot.usecase
Class KAoSWrappedUsecase
java.lang.Object
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 $
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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
KAoSWrappedUsecase
public KAoSWrappedUsecase(java.lang.String name)
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