In the FIPA Contract Net Interaction Protocol, the initiator, Id, takes the role of a manager which wishes to have some task performed by other agent(s). A receiving agent may either respond with a proposal, refuse, or not understand the task. The initiator can then either accept or refuse the proposal. The receiving agent then informs the initiator if the task is completed or sends a failure message. Alternatively, the initiator can cancel the task.
[More details]
// Written by Jarred McGinnis // // LCC Specification for FIPA contract net protocol a(contract_net_ip_initiator,Id):: ( a(cfp_ca_sender,Id) or a(refuse_ca_receiver,Id) or a(not_understood_ca_receiver,Id) ) then ( a(accept_proposal_ca_sender,Id) or a(reject_proposal_ca_sender,Id) ) then ( a(inform_ca_receiver,Id) or a(failure_ca_receiver,Id) or a(cancel_ca_sender,Id) ) a(contract_net_ip_responder,Id):: ( a(cfp_ca_sender,Id) or a(refuse_ca_sender,Id) or a(not_understood_ca_sender,Id) ) then ( a(accept_proposal_ca_receiver,Id) or a(reject_proposal_ca_receiver,Id) ) then ( a(inform_ca_sender,Id) or a(failure_ca_sender,Id) or a(cancel_ca_receiver,Id) )
