|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.core.service.boot.KAoSAgent kaos.autonomy.Kaa
public class Kaa
Field Summary |
---|
Fields inherited from class kaos.core.service.boot.KAoSAgent |
---|
_agentDescription, _agentDirectoryService, _agentNamingService, _agentNickname, _lctr, _logger, _messageTransportService, _name, _serviceRoot |
Constructor Summary | |
---|---|
Kaa()
|
Method Summary | |
---|---|
protected TransportMessage |
buildTransportMessage(AgentDescription agt,
java.lang.Object content)
build transport message given content to be sent |
void |
controlAdjustableAutonomy(java.lang.String appealerName,
Locator appealerLocator,
ActionInstanceDescription aid,
java.lang.String policyID,
java.lang.String policyType)
call Kaa decision making module |
protected AgentDescription |
findAgent(java.lang.String agentName)
find agent description for a given agent ID |
KAoSAgentDirectoryServiceProxy |
getDirectoryServiceProxy()
get directory service proxy |
Locator |
getGuardLocator(java.lang.String actor)
get the locator of Guard |
static void |
main(java.lang.String[] args)
main method |
void |
receiveMessage(TransportMessage tmsg)
steps to take when receive message from agent |
void |
reinstateObligationPolicy(Locator guardLocator,
java.lang.String policyID)
tell a guard to reinstate an obligation policy |
protected void |
sendMessageToClassifier(Locator appealerLocator,
java.lang.Object content)
send given message content to classifier |
protected void |
sendRequestToGuard(Locator guardLocator,
java.lang.String request,
java.util.Vector args)
send a request to the specified guard. |
void |
suspendObligationPolicy(Locator guardLocator,
java.lang.String policyID)
tell a guard to suspend an obligation policy |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Kaa()
Method Detail |
---|
public void controlAdjustableAutonomy(java.lang.String appealerName, Locator appealerLocator, ActionInstanceDescription aid, java.lang.String policyID, java.lang.String policyType)
aid
- Action instance descriptionpublic void receiveMessage(TransportMessage tmsg)
receiveMessage
in class KAoSAgent
tmsg
- Transport messageMessageListener
,
TransportMessage
,
"JAS Specification, Section(s) 3.4.2, 4.7.2"protected void sendMessageToClassifier(Locator appealerLocator, java.lang.Object content)
content
- Message to be sentprotected void sendRequestToGuard(Locator guardLocator, java.lang.String request, java.util.Vector args)
guardLocator
- locator of the guard to whom to send the requestrequest
- Specific request to be sentargs
- Necessary arguments for that request.protected AgentDescription findAgent(java.lang.String agentName)
agentName
- Actor name
protected TransportMessage buildTransportMessage(AgentDescription agt, java.lang.Object content)
agt
- Description of an agent which will receive a messagecontent
- Content of message to be sent
public Locator getGuardLocator(java.lang.String actor) throws DirectoryFailure
actor
- A String specifying the name of agent
DirectoryFailure
- If error in the D.S.public void suspendObligationPolicy(Locator guardLocator, java.lang.String policyID)
guardLocator
- Locator of the guard to whom send the message topolicyID
- ID of the policy that is to be suspended.public void reinstateObligationPolicy(Locator guardLocator, java.lang.String policyID)
guardLocator
- Locator of the guard to whom send the message topolicyID
- ID of the policy that is to be reinstated.public KAoSAgentDirectoryServiceProxy getDirectoryServiceProxy()
public static void main(java.lang.String[] args) throws java.lang.Exception
name
- Name of agenttransport
- Method of transport
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |