|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jade.core.behaviours.Behaviour | +--jade.core.behaviours.CompositeBehaviour | +--jade.core.behaviours.SerialBehaviour | +--jade.core.behaviours.FSMBehaviour | +--jade.proto.Initiator | +--jade.proto.SubscriptionInitiator | +--ie.nuigalway.ecrg.jade.jmsagentgateway.examples.PingAgent.JmsSubscriptionInitiator
Implementation of the SubscriptionInitiator interface
Nested Class Summary |
Nested classes inherited from class jade.proto.SubscriptionInitiator |
|
Nested classes inherited from class jade.core.behaviours.FSMBehaviour |
|
Nested classes inherited from class jade.core.behaviours.Behaviour |
jade.core.behaviours.Behaviour.RunnableChangedEvent |
Field Summary | |
(package private) jade.core.Agent |
agent
|
private int |
counter
|
Fields inherited from class jade.proto.SubscriptionInitiator |
ALL_INITIATIONS_K, ALL_RESPONSES_KEY, ALL_SUBSCRIPTIONS_KEY, CHECK_IN_SEQ, CHECK_SESSIONS, DUMMY_FINAL, HANDLE_FAILURE, HANDLE_NOT_UNDERSTOOD, HANDLE_OUT_OF_SEQ, INITIATION_K, PREPARE_INITIATIONS, RECEIVE_REPLY, REPLY_K, REPLY_KEY, replyReceiver, replyTemplate, SEND_INITIATIONS, sessions, SUBSCRIPTION_KEY |
Fields inherited from class jade.core.behaviours.FSMBehaviour |
|
Fields inherited from class jade.core.behaviours.CompositeBehaviour |
currentExecuted |
Fields inherited from class jade.core.behaviours.Behaviour |
myAgent, myEvent, NOTIFY_DOWN, NOTIFY_UP, parent, STATE_BLOCKED, STATE_READY, STATE_RUNNING |
Constructor Summary | |
(package private) |
PingAgent.JmsSubscriptionInitiator(jade.core.Agent a,
jade.lang.acl.ACLMessage msg)
Constructor for the JmsSubscriptionInitiator object |
Method Summary | |
protected void |
handleAgree(jade.lang.acl.ACLMessage agree)
Method called when a Agree message is received |
protected void |
handleFailure(jade.lang.acl.ACLMessage failure)
Method called when a Failure message is received |
protected void |
handleInform(jade.lang.acl.ACLMessage inform)
Method called when a Inform message is received |
protected void |
handleNotUnderstood(jade.lang.acl.ACLMessage notUnderstood)
Method called when a NotUnderstood message is recceived |
protected void |
handleRefuse(jade.lang.acl.ACLMessage refuse)
Method called when a Refuse message is received |
Methods inherited from class jade.proto.SubscriptionInitiator |
adjustReplyTemplate, cancel, cancellationCompleted, checkInSequence, checkSessions, createConvId, fillCancelContent, getToBeReset, handleAllResponses, handleOutOfSequence, initializeDataStore, onStart, prepareInitiations, prepareSubscriptions, registerHandleAgree, registerHandleAllResponses, registerHandleFailure, registerHandleInform, registerHandleNotUnderstood, registerHandleOutOfSequence, registerHandleRefuse, registerPrepareInitiations, registerPrepareSubscriptions, reset, reset, sendInitiations, setDataStore |
Methods inherited from class jade.core.behaviours.FSMBehaviour |
checkTermination, forceTransitionTo, getChildren, getCurrent, getLastExitValue, getName, getState, onEnd, registerDefaultTransition, registerDefaultTransition, registerFirstState, registerLastState, registerState, registerTransition, registerTransition, resetStates, scheduleFirst, scheduleNext |
Methods inherited from class jade.core.behaviours.SerialBehaviour |
handle |
Methods inherited from class jade.core.behaviours.CompositeBehaviour |
action, block, done, registerAsChild, restart, setAgent |
Methods inherited from class jade.core.behaviours.Behaviour |
actionWrapper, block, getBehaviourName, getDataStore, isRunnable, root, setBehaviourName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int counter
jade.core.Agent agent
Constructor Detail |
PingAgent.JmsSubscriptionInitiator(jade.core.Agent a, jade.lang.acl.ACLMessage msg)
a
- Agent involved in this interactionmsg
- Subscription message to sendMethod Detail |
protected void handleAgree(jade.lang.acl.ACLMessage agree)
handleAgree
in class jade.proto.SubscriptionInitiator
agree
- Agree message receivedprotected void handleRefuse(jade.lang.acl.ACLMessage refuse)
handleRefuse
in class jade.proto.SubscriptionInitiator
refuse
- Refuse message receivedprotected void handleNotUnderstood(jade.lang.acl.ACLMessage notUnderstood)
handleNotUnderstood
in class jade.proto.Initiator
notUnderstood
- NotUnderstood message receivedprotected void handleInform(jade.lang.acl.ACLMessage inform)
handleInform
in class jade.proto.SubscriptionInitiator
inform
- Inform message receivedprotected void handleFailure(jade.lang.acl.ACLMessage failure)
handleFailure
in class jade.proto.Initiator
failure
- Failure message received
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |