27.01.2014 Views

Multiagent Systems

Multiagent Systems

Multiagent Systems

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Prof. Dr. Jürgen Dix · Department of Informatics, TUC <strong>Multiagent</strong> <strong>Systems</strong>, WS 06/07 716/731<br />

9. Agents based on FOL 6. Comparison<br />

The program rules of the seller agent are the following<br />

ones (lowercase symbols = constants, uppercase =<br />

variables):<br />

∀ Buyer, Merchandise, Req_Amnt, P rice<br />

⊖[contractP roposal(Buyer, seller, Merchandise, Req_Amnt, P rice) ∧<br />

storing(Merchandise, Old_Amount) ∧ Old_Amount ≥ Req_Amnt ∧<br />

max − price(Merchandise, Max) ∧ P rice ≥ Max] =⇒<br />

[ship(Buyer, Merchandise, Req_Amnt, P rice) ∧<br />

accept(seller, Buyer, Merchandise, Req_Amnt, P rice)]<br />

If there was a previous state where Buyer sent a<br />

contractProposal message to seller, and in that previous<br />

state all the conditions were met to accept the proposal,<br />

then accept the Buyer’s proposal and ship the required<br />

merchandise.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!