Jump to content

Draft:Information protocols

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Akchopra (talk | contribs) at 16:21, 7 March 2025 (Added example;working on explanation). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Information protocols is a declarative approach for specifying interaction protocols. The approach was invented in 2011 by Munindar P. Singh to address the challenge of modeling flexible interactions between agents.

Idea

Flexible Purchase involve two roles, Buyer and Seller. It specifies several messages, each with sender, receiver, and several parameters, some of which are key parameters. For example, Request is a message from Buyer to Seller and has parameters ID, which is key, and item. Key parameters uniquify instances of a message and enable correlation.

Adornment out and in specify causality.

Flexible Purchase {
 role Buyer, Seller
 parameter out ID key, out item, out status, out paid

 Buyer -> Seller: Request[out ID key, out item]
 Seller -> Buyer: Shipment[in ID key , in item, out status]
 Buyer -> Seller: Payment[in ID key, in item, out paid]
}