|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectContractNetResponder
CoPS.agents.RespondToCfpsBehaviour
Class taking care of the correspondence between an agent sending out cfps and this problem solver. Modified by Kari Roessland.
Constructor Summary | |
RespondToCfpsBehaviour(Agent agent,
MessageTemplate template,
DataStore ds)
The constructor only calls the RespondToCfpsBehaviour class' superconstructor. |
Method Summary | |
protected void |
handleRejectProposal(ACLMessage cfp,
ACLMessage propose,
ACLMessage rejectProposal)
The method handleRejectProposal is called when an reject-proposal-message is received, the agent did not get an invitation to join the problem solving team. |
int |
onEnd()
This method returns the transition from this state/behaviour. |
protected ACLMessage |
prepareResponse(ACLMessage request)
The method prepareResponse handles the making of an answer to a cfp-message. |
protected ACLMessage |
prepareResultNotification(ACLMessage cfp,
ACLMessage propose,
ACLMessage accept)
The method prepareResultNotification is called when an accept-message is received. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RespondToCfpsBehaviour(Agent agent, MessageTemplate template, DataStore ds)
agent
- The owner of this behaviour.template
- A message template used to filter the correct cfp-messages.ds
- The datastore belonging to this behaviour.Method Detail |
protected ACLMessage prepareResponse(ACLMessage request)
request
- The incoming cfp message.
protected void handleRejectProposal(ACLMessage cfp, ACLMessage propose, ACLMessage rejectProposal)
cfp
- The cfp message.propose
- The agent's proposal message.rejectProposal
- The received reject-proposal message.protected ACLMessage prepareResultNotification(ACLMessage cfp, ACLMessage propose, ACLMessage accept)
cfp
- The cfp message.propose
- The agent's proposal message.accept
- The invitation/rejection message received from the Task Responsible agent.
public int onEnd()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |