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:
- HashMapRequestReceiver
public class RequestReceiverUsecase
- extends ActionMethodRequestHandler
$Revision: 1.2 $
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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