Receive a contract net protocol (cnp) and answer it.
The body method is called on the
instatiated plan instance from the scheduler.
getLogger().info("Negotiation round: "+i+" receiver got cfp: "+me);
if(ex!=null || proposal == null || proposal==null)
Test if it is the iterated contract-net version.
- True, if is is the iterated version.
Get protocol abbrev name.
- The protocol abbrev name.
Make a proposal based on the task description.
cfp The cfp including the task to execute.
- The proposal for executing the task.
Execute the task.
proposal The proposal.
proposal_info The proposal info.
- The result of the task.