Anylogic - 两个代理之间的通信 [英] Anylogic - Communicate between two agents

查看:33
本文介绍了Anylogic - 两个代理之间的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于基于代理的模型的问题.

I have a problem regarding Agent-based model.

我建立了两个代理.一个有状态图.我希望状态图能够被其他代理通过发送消息或其他方式工作..

I built two agents. One has statechart. I want that the statechart is able to be worked by other agents via send message or something..

我该怎么做?

推荐答案

查看名为代理之间的通信"的 AnyLogic 帮助主题.这将向您展示如何在代理之间来回发送消息.然后阅读名为消息触发转换"的主题.这将向您展示如何使用消息在状态之间移动.本质上,您制作状态图,将您需要的任何转换更改为 Message Transitions,以便它们响应消息,然后您使用 send(...) 将消息发送到具有相关状态图.祝你好运!

Check out the AnyLogic Help topic named "Communication between agents". This will show you how to send messages back and forth between Agents. Then read the topic named "Message Triggered Transition". This will show you how to move between states using messages. Essentially, you make your state chart, change whatever transitions you need to Message Transitions so that they will respond to messages, and then you use send(...) to send messages to the Agent that has the relevant state chart. Good luck!

这篇关于Anylogic - 两个代理之间的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆