|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.core.example.KAoSUsecase1
kaos.core.example.KAoSUsecase2
public class KAoSUsecase2
$Revision: 1.2 $
| Field Summary |
|---|
| Fields inherited from class kaos.core.example.KAoSUsecase1 |
|---|
_agentNickname, ads, ans, CONVERSATION_FLAG, lctr, LOGGER, mts, name, sr, STATEMENT |
| Constructor Summary | |
|---|---|
protected |
KAoSUsecase2(ServiceRoot sr,
java.lang.String nickname)
Instantiates a new Usecase with the provided ServiceRoot. |
| Method Summary | |
|---|---|
protected TransportMessage |
buildTransportMessage(AgentDescription agt)
Builds a TransportMessage for delivery to Agent A (Usecase1). |
protected void |
deregister()
Deregisters Agent A from the AgentDirectoryService. |
protected AgentDescription |
findAgentA()
Utilizes the AgentDirectoryService to "search" for Agent A (recall that Agent A is a synonym for Usecase1). |
AgentDescription |
getAgentDescription()
Creates a new AgentDescription for this Usecase. |
static void |
main(java.lang.String[] args)
|
protected void |
sendTransportMessage(TransportMessage msg)
Utilizes the MessageTransportService to send the TransportMessage to Agent A. |
| Methods inherited from class kaos.core.example.KAoSUsecase1 |
|---|
acquireAgentDirectoryService, acquireAgentName, acquireAgentNamingService, acquireMessageTransportService, assertFalse, assertTrue, bindToMessageTransportService, equals, hashCode, initialize, receiveMessage, verifyRegistration |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected KAoSUsecase2(ServiceRoot sr,
java.lang.String nickname)
sr - the instantiating ServiceRoot (a reference is kept).ServiceRoot,
"JAS Specification, Section(s) 2.2.2.1, 3.3"| Method Detail |
|---|
public AgentDescription getAgentDescription()
getAgentDescription in class KAoSUsecase1AgentDescription,
AgentDirectoryService#createAgentDescription,
"JAS Specification, Section(s) 2.2.3.1, 4.5.1"
protected AgentDescription findAgentA()
throws java.lang.Exception
java.lang.Exception - if a DirectoryException occurs.AgentDescription,
AgentDirectoryService#search(AgentDescription),
"JAS Specification, Section(s) 2.2.3.2, 4.5.1, 4.5.2"protected TransportMessage buildTransportMessage(AgentDescription agt)
agt - the AgentDescription describing Agent A.
TransportMessage,
AcrPayload,
ServiceRoot#getAcrElementUtility,
AcrElementUtility#getAcrElementBuilder,
AcrElementUtility#getAcrElementHelper,
AcrElementBuilder#createAcrAclMessage,
AcrElementBuilder#createAcrPayload,
"JAS Specification, Section(s) 2.2.3.3, 4.3.7, 4.3.8, 4.3.9"
protected void sendTransportMessage(TransportMessage msg)
throws java.lang.Exception
msg - the TransportMessage to send to Agent A.
java.lang.Exception - if anything goes wrong during the send operation.
protected void deregister()
throws java.lang.Exception
java.lang.Exception - if the deregistration fails.
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||