|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jade.core.Agent | +--ie.nuigalway.ecrg.jade.jmsagentgateway.examples.ClientAgent
Example Client agent used to interact with the PubSubAgent
Nested Class Summary | |
(package private) class |
ClientAgent.JmsSubscriptionInitiator
Implementation of the SubscriptionInitiator interface |
(package private) class |
ClientAgent.PublishCommand
Behaviour used to publish messages to the JmsProxyAgent |
Nested classes inherited from class jade.core.Agent |
|
Field Summary | |
private jade.content.lang.Codec |
codec
|
private jade.core.AID |
jmsProxyAgent
|
private jade.content.onto.Ontology |
ontology
|
Fields inherited from class jade.core.Agent |
AP_ACTIVE, AP_COPY, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_TRANSIT, AP_WAITING, currentBehaviour, currentMessage, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN |
Constructor Summary | |
ClientAgent()
|
Method Summary | |
private jade.lang.acl.ACLMessage |
getSubscriptionMsg()
Create a subscription message |
private void |
lookupAgent()
Lookup the JmsProxyAgent |
private void |
publishMessage(java.lang.String payload)
Utility messgea to publish a message |
private void |
sendMessage(int performative,
jade.content.AgentAction action)
Utility method for sending a message |
protected void |
setup()
Setup the agent |
Methods inherited from class jade.core.Agent |
addBehaviour, afterClone, afterMove, beforeClone, beforeMove, blockingReceive, blockingReceive, blockingReceive, blockingReceive, doActivate, doClone, doDelete, doMove, doStart, doSuspend, doTimeOut, doWait, doWait, doWake, extractPassword, extractUsername, getAgentState, getAID, getAMS, getArguments, getAuthority, getCertificateFolder, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getHap, getHelper, getLocalName, getName, getO2AObject, getPrincipal, getProperty, getQueueSize, getState, here, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, read, read, receive, receive, removeBehaviour, restartLater, restore, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setOwnership, setPrincipal, setQueueSize, takeDown, waitUntilStarted, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private jade.core.AID jmsProxyAgent
private jade.content.lang.Codec codec
private jade.content.onto.Ontology ontology
Constructor Detail |
public ClientAgent()
Method Detail |
protected void setup()
setup
in class jade.core.Agent
private void publishMessage(java.lang.String payload)
payload
- Payload of the message to be publishedprivate void sendMessage(int performative, jade.content.AgentAction action)
performative
- Performative for the messageaction
- The AgentAction of the message to be sentprivate jade.lang.acl.ACLMessage getSubscriptionMsg()
private void lookupAgent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |