老码农分享 http://blog.sciencenet.cn/u/seawan //敲键读书打酱油;

博文

【笔记】agent的通讯语言

已有 3646 次阅读 2011-3-21 17:11 |个人分类:多主体系统|系统分类:科研笔记|关键词:学者| KQML

agent之间的通讯是MAS(multi-agent system)的关键问题之一。
目前流行的通讯语言之一是KQML:
包括两部分:(1) the Knowledge Query and Manipulation Language (KQML)
(2) the Knowledge Interchange Format (KIF).
KQML定义一系列的“行动词”(performatives),例如:
  • ask-if (“is it true that . . .”);
  • perform (“please perform the following action . . .”);
  • reply (“the answer is . . .”);
KIF表达消息内容,例如:
  • properties of things in a domain (e.g. “Kroger is retailer”);
  • relationships between things in a domain (e.g. “Procter & Gamble is Wal-Mart's supplier”);
  • general properties of a domain (e.g. “All customer orders are registered by at least one retailer”).
KQML/KIF对话的例子:agents A and B讨论part 1的大小是否比part 2大,并确认part 1为20,part 2为18:
A to B: (ask-if (> (size part1) (size part2)))
B to A: (reply true)
B to A: (inform ( ¼ (size part1) 20))
B to A: (inform ( ¼ (size part2) 18))
另:关于另一个标准,参阅
FIPA:IEEE主体系统的标准


https://m.sciencenet.cn/blog-461456-424846.html

上一篇:【笔记】囚徒困境与利他的进化
下一篇:“新郑红”免洗枣,要一个一个看看再吃

0

发表评论 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-25 13:59

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部