Multi Agent System学习笔记

2008-02-23 09:22:21来源:互联网 阅读 ()

新老客户大回馈,云服务器低至5折

Ontology:本体 实体,Concept的集合
Concept:例如一个Person 对象相当于domain model

The general peer-to-peer intelligent agents approach permits to model systems that represent environment in which independent

autonomous elements have to communicate and collaborate in order to achieve the desired results:

jade 是一个peer-to-peer intelligent agents,它不仅是p2p,而且是智能代理,例如发送请求,能自动回应。jade可以和JESS专家系统结合

起来实现智能代理的功能。

paradigm 范例


建立一个代理
确定代理的行为:
One-shot behaviours 只执行一遍
cyclic behaviours 循环执行
generic behaviours 自己定义执行步骤
WakerBehaviour 从创建该行为开始一定时间后执行
TickerBehaviour 定期执行

代理的通信:ACL
sender
receivers
performative 描述行为
REQUEST:发送者请求接收者完成一项操作
INFORM:发送者要求接收者知晓
 QUERY_IF
 CFP :call for proposal
 PROPOSE
 ACCEPT_PROPOSAL
 REJECT_PROPOSAL
content
language
ontology:the vocabulary of the symbols used in the content and their meaning (both the sender
and the receiver must ascribe the same meaning to symbols for the communication to be effective).
conversation-id, reply-with, in-reply-to, reply-by:


典型接收模式
1 public void action() {
ACLMessage msg = myAgent.receive();
if (msg != null) {
// Message received. Process it
...
}
else {
block();
}
}

2 blockingReceive() methods actually blocks the agent thread.
Therefore if you call blockingReceive() from within a behaviour, this prevents all other behaviours to
run until the call to blockingReceive() returns.

use blockingReceive() in the setup() and takeDown() methods;
use receive() in combination with Behaviour.block() within behaviours.

上一篇: J2ME最佳实践 - 1
下一篇: J2ME最佳实践 - 2

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Emacs之JDEE大餐烹饪方法

下一篇:J2ME最佳实践 - 2