|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.core.service.boot.KAoSAgent
kaos.core.service.boot.usecase.KAoSUsecase10New
kaos.core.service.boot.usecase.KAoSUsecase20New
public class KAoSUsecase20New
$Revision: 1.2 $
| Field Summary |
|---|
| Fields inherited from class kaos.core.service.boot.usecase.KAoSUsecase10New |
|---|
CONVERSATION_FLAG, LOGGER, myDomain, STATEMENT |
| Fields inherited from class kaos.core.service.boot.KAoSAgent |
|---|
_agentDescription, _agentDirectoryService, _agentNamingService, _agentNickname, _lctr, _logger, _messageTransportService, _name, _serviceRoot |
| Constructor Summary | |
|---|---|
KAoSUsecase20New()
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). |
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.service.boot.usecase.KAoSUsecase10New |
|---|
receiveMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KAoSUsecase20New()
sr - the instantiating ServiceRoot (a reference is kept).ServiceRoot,
"JAS Specification, Section(s) 2.2.2.1, 3.3"| Method Detail |
|---|
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 | ||||||||