kaos.core.csi.usecase
Class RequestReceiverUsecase
java.lang.Object
kaos.core.util.MethodCallRequestHandler
kaos.core.csi.request.ActionMethodRequestHandler
kaos.core.csi.usecase.RequestReceiverUsecase
- All Implemented Interfaces:
- AIDRequestReceiver, HashMapRequestReceiver
public class RequestReceiverUsecase
- extends ActionMethodRequestHandler
This class ilistrates 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.
Fields inherited from class kaos.core.util.MethodCallRequestHandler |
_agentDescription, _helper, _logger, _mts, _nickName, DEFAULT_NICKNAME, myLocator, myMessageReceiver, myMessageSender |
Method Summary |
java.lang.String |
CommunicationAction()
|
void |
CommunicationAction(kaos.core.service.ontology.request.ActionStatusCallback statusCallback)
|
java.lang.String |
CommunicationAction(java.util.HashMap properties)
|
void |
CommunicationAction(java.util.HashMap properties,
kaos.core.service.ontology.request.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.util.MethodCallRequestHandler |
bindToTransport, handleMsgContent, handleObjContent, initialize, receiveMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestReceiverUsecase
public RequestReceiverUsecase()
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,
kaos.core.service.ontology.request.ActionStatusCallback statusCallback)
throws java.lang.Exception
- Throws:
java.lang.Exception
CommunicationAction
public void CommunicationAction(kaos.core.service.ontology.request.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
Copyright © 2006 IHMC All Rights Reserved.