Download presentation
Presentation is loading. Please wait.
1
Computer Science 25/06/20151 Agent Communications: Static Protocols CPSC 601.68/CPSC 599.68 Rob Kremer Department of Computer Science University of Calgary
2
25/06/2015CPSC 609.68/599.68: Agent Communications2 Static (Ad-hoc) Protocols Merely “scripts” that the agent follows Typical notation is state diagrams Petri nets are a generalization of state diagrams
3
25/06/2015CPSC 609.68/599.68: Agent Communications3 Ad-hoc Protocols: Petri Nets Buyer: Request to BuySeller: Request PaymentSeller: Accepting to SellBuyer: Accepting to PayBuyer: Paying for itemSeller: Accepting PaymentSeller: Handing out itemBuyer: Accepting itemSuccess
4
25/06/2015CPSC 609.68/599.68: Agent Communications4 Simple Petri Nets “Place” “Transition” “Arc” Directed arcs only Strictly bipartite “Tokens” occupy places (a place can contain any number of tokens) A transition can fire only when there is sufficient tokens at all of the incoming places. The transition firing consumes tokens at the incoming side and emits tokens to the places on the outgoing side.
5
25/06/2015CPSC 609.68/599.68: Agent Communications5 Transitions If ALL of a transition’s incoming places have tokens, it MAY fire So if there’s a single token to available for more than one transition, only one of them MAY fire
6
25/06/2015CPSC 609.68/599.68: Agent Communications6 Transitions A transition will place tokens on all of it’s outgoing places IF it fires
7
25/06/2015CPSC 609.68/599.68: Agent Communications7 Transitions EVERY incoming place must have sufficient* tokens available in order for it to fire
8
25/06/2015CPSC 609.68/599.68: Agent Communications8 Transitions Places can contain any number of tokens
9
25/06/2015CPSC 609.68/599.68: Agent Communications9 Lots of other kinds of Petri Nets –Weighted Petri nets –Coloured Petri nets –Hierarchy –Vector addition system with states –Prioritised Petri nets –Timed Petri nets –Stochastic Petri nets –etc. Could do the whole course on Petri Nets! A decent quick description is on Wikipedia at http://en.wikipedia.org/wiki/Petri_netWikipedia http://en.wikipedia.org/wiki/Petri_net
10
25/06/2015CPSC 609.68/599.68: Agent Communications10 Example: “call for proposals” A MIP-net (Multi-agent Interaction Protocol net) – combining two A-nets (Agent nets) and one IP- net (Interaction Protocol net). Reference: Sea Ling & Seng Wai Loke. A Formal Compositional Model of Multiagent Interaction. AAMAS’03 – International Conference on Autonomous Agents and Multi- Agent System, July 14-18, 2003, Melbourne, Australia. ACM, 2003. Also available: http://delivery.acm.org/10.1145/870 000/860791/p1052- ling.pdf?key1=860791&key2=2595 358611&coll=&dl=ACM&CFID=151 51515&CFTOKEN=6184618 http://delivery.acm.org/10.1145/870 000/860791/p1052- ling.pdf?key1=860791&key2=2595 358611&coll=&dl=ACM&CFID=151 51515&CFTOKEN=6184618 Ling & Loke 2003, p.1053
11
25/06/2015CPSC 609.68/599.68: Agent Communications11 Example: A produce Protocol This is an extension of colored Petri nets called “reference nets” Reference: Lawrence Cabac, Daniel Moldt & Heiko Rolke. A Proposal for Structuring Petri Net-Based Agent Interaction Protocols. Lecture Notes in Computer Science: 24th International Conference on Application and Theory of Petri Nets, Eindhoven, Netherlands, June 2003. Springer, 2003. Also available: http://www.informatik.uni- hamburg.de/TGI/mitarbeiter/wimis/cabac/netcomponents.pdf.gzhttp://www.informatik.uni- hamburg.de/TGI/mitarbeiter/wimis/cabac/netcomponents.pdf.gz
12
25/06/2015CPSC 609.68/599.68: Agent Communications12 Issues Rigid and Brittle Hard to account for all eventualities See assignment 1 to convince yourself of this
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.