kaos.core.csi.usecase
Class RequestReceiverUsecase

java.lang.Object
  extended by kaos.core.util.MethodCallRequestHandler
      extended by kaos.core.csi.request.ActionMethodRequestHandler
          extended by kaos.core.csi.usecase.RequestReceiverUsecase
All Implemented Interfaces:
HashMapRequestReceiver

public class RequestReceiverUsecase
extends ActionMethodRequestHandler

$Revision: 1.2 $


Field Summary
 
Fields inherited from class kaos.core.csi.request.ActionMethodRequestHandler
_policyService
 
Fields inherited from class kaos.core.util.MethodCallRequestHandler
_agentDescription, _locator, _logger, _mts, _nickName
 
Constructor Summary
RequestReceiverUsecase()
          This class llustrates an implementation of a CSI RequestReceiver: an entity capable of receiving and processing requests for actions defined in kaos ontologies.
 
Method Summary
 java.lang.String CommunicationAction()
           
 void CommunicationAction(ActionStatusCallback statusCallback)
           
 java.lang.String CommunicationAction(java.util.HashMap properties)
           
 void CommunicationAction(java.util.HashMap properties, ActionStatusCallback statusCallback)
           
 void initialize(java.lang.String name, java.util.Vector domainNames, java.lang.String transportName)
           
static void main(java.lang.String[] args)
           
 java.lang.String MonitorAction()
           
 
Methods inherited from class kaos.core.csi.request.ActionMethodRequestHandler
bindToPolicyService, checkPermissionForAction, executeHashMapBasedAction, getPropertiesFromAID, processAIDRequest, processAIDRequest, processHashMapRequest, processHashMapRequest, processHashMapRequest, processHashMapRequest
 
Methods inherited from class kaos.core.util.MethodCallRequestHandler
bindToTransport, initialize, receiveMessage, satisfyRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestReceiverUsecase

public RequestReceiverUsecase()
This class llustrates an implementation of a CSI RequestReceiver: an entity capable of receiving and processing requests for actions defined in kaos ontologies. Configuration data includes: nickname, names of kaos domains it will register in, name of a transport to use for communication within KAoS. Implementation: - inherits from a generic CSI RequestReceiver, which also binds to transport and policy service - adds specific requests for CommunicationAction() async with and without properties sync with and without properties - each received request is authorized by the CSI Policy Bootstrapping steps: - obtains a reference to CSI Registration - binds itself to CSI Transport (implemented in its superclass) - binds itself to CSI Policy Service (implemented in its superclass) - asks CSI Registration to create a KAoSAgentDescription for itself - specifies ontological type of a Robot in the KAoSAgentDescription - asks CSI Registration to register with KAoS Running - waits for requests for CommunicationAction and processes those requests when they come in.

Method Detail

initialize

public void initialize(java.lang.String name,
                       java.util.Vector domainNames,
                       java.lang.String transportName)
                throws java.lang.Exception
Throws:
java.lang.Exception

CommunicationAction

public void CommunicationAction(java.util.HashMap properties,
                                ActionStatusCallback statusCallback)
                         throws java.lang.Exception
Throws:
java.lang.Exception

CommunicationAction

public void CommunicationAction(ActionStatusCallback statusCallback)
                         throws java.lang.Exception
Throws:
java.lang.Exception

CommunicationAction

public java.lang.String CommunicationAction(java.util.HashMap properties)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

CommunicationAction

public java.lang.String CommunicationAction()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

MonitorAction

public java.lang.String MonitorAction()
                               throws java.lang.Exception
Throws:
java.lang.Exception

main

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