|
Nested classes/interfaces inherited from class sajas.core.behaviours.Behaviour |
Behaviour.RunnableChangedEvent |
Field Summary | ||
String |
PROPOSE_ACCEPTANCE_KEY Deprecated. Use either ACCEPT_PROPOSAL_KEY or REJECT_PROPOSAL_KEY according to the message that has been received |
|
static String |
RECEIVE_CFP | |
String |
RESPONSE_KEY Deprecated. Use REPLY_KEY |
|
String |
RESULT_NOTIFICATION_KEY Deprecated. Use REPLY_KEY |
Fields inherited from class sajas.proto.SSContractNetResponder |
ACCEPT_PROPOSAL_KEY, CFP_KEY, CHECK_IN_SEQ, DUMMY_FINAL, HANDLE_ACCEPT_PROPOSAL, HANDLE_CFP, HANDLE_OUT_OF_SEQUENCE, HANDLE_REJECT_PROPOSAL, INITIATION_KEY, PROPOSE_KEY, RECEIVE_NEXT, RECEIVED_KEY, REJECT_PROPOSAL_KEY, REPLY_KEY, SEND_REPLY |
Fields inherited from class sajas.core.behaviours.FSMBehaviour |
currentName, lastStates |
Fields inherited from class sajas.core.behaviours.CompositeBehaviour |
currentExecuted |
Fields inherited from class sajas.core.behaviours.Behaviour |
myAgent, myEvent, NOTIFY_DOWN, NOTIFY_UP, parent, STATE_BLOCKED, STATE_READY, STATE_RUNNING |
Constructor Summary | ||
ContractNetResponder(Agent a, jade.lang.acl.MessageTemplate mt) Constructor of the behaviour that creates a new empty DataStore |
||
ContractNetResponder(Agent a, jade.lang.acl.MessageTemplate mt, DataStore store) Constructor of the behaviour. |
Method Summary | ||
static jade.lang.acl.MessageTemplate |
createMessageTemplate(String iprotocol) This static method can be used to set the proper message Template (based on the interaction protocol and the performative) to be passed to the constructor of this behaviour. |
|
protected jade.lang.acl.ACLMessage |
handleAcceptProposal(jade.lang.acl.ACLMessage cfp, jade.lang.acl.ACLMessage propose, jade.lang.acl.ACLMessage accept) Redefine this method to call prepareResultNotification() |
|
protected jade.lang.acl.ACLMessage |
handleCfp(jade.lang.acl.ACLMessage cfp) Redefine this method to call prepareResponse() |
|
protected jade.lang.acl.ACLMessage |
prepareResponse(jade.lang.acl.ACLMessage cfp) Deprecated. Use handleCfp() instead |
|
protected jade.lang.acl.ACLMessage |
prepareResultNotification(jade.lang.acl.ACLMessage cfp, jade.lang.acl.ACLMessage propose, jade.lang.acl.ACLMessage accept) Deprecated. Use handleAcceptProposal() instead. |
|
void |
registerHandleCfp(Behaviour b) Redefine this method so that the HANDLE_CFP state is not registered as first state |
|
void |
registerPrepareResponse(Behaviour b) Deprecated. Use registerHandleCfp() instead. |
|
void |
registerPrepareResultNotification(Behaviour b) Deprecated. Use registerHandleAcceptProposal() instead. |
|
protected void |
sessionTerminated() This method can be redefined by protocol specific implementations to take proper actions after the completion of the current protocol session. |
Methods inherited from class sajas.proto.SSContractNetResponder |
afterReply, beforeReply, checkInSequence, handleOutOfSequence, handleOutOfSequence, handleRejectProposal, onStart, registerDSState, registerHandleAcceptProposal, registerHandleOutOfSequence, registerHandleRejectProposal, reinit, reset |
Methods inherited from class sajas.core.behaviours.SerialBehaviour |
handle |
Methods inherited from class sajas.core.behaviours.CompositeBehaviour |
action, done, handleBlockEvent, handleRestartEvent, registerAsChild, resetChildren, setAgent |
Methods inherited from class sajas.core.behaviours.Behaviour |
actionWrapper, block, block, getAgent, getBehaviourName, getDataStore, getExecutionState, getParent, getRestartCounter, isRunnable, restart, root, setBehaviourName, setDataStore, setExecutionState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACCEPT_PROPOSAL_KEY
or
REJECT_PROPOSAL_KEY
according to the message
that has been receivedREPLY_KEY
REPLY_KEY
createMessageTemplate
might be usefull.handleCfp()
insteadhandleAcceptProposal()
instead.registerHandleCfp()
instead.registerHandleAcceptProposal()
instead.:content
slot.:content
slot.:content
slot.:content
slot.
|