Anylogic,代理在队列中等待

huangapple 未分类评论47阅读模式
英文:

Anylogic, agents waiting in queue

问题

我有100名代理,它们被引导到网络中的特定节点。网络由节点、吸引子和路径组成。

问题是:当代理前往它们的节点时,它们不会考虑网络中的其他代理(人员)。我希望它们在前方的代理停下时也能停下。

我使用过程建模库,代码如下:

  • 移动到
  • 延迟(代理在一个节点上停留片刻)
  • 移动到(特定节点)
  • 延迟(停留在特定节点)

我尝试在延迟之前创建一个FIFO队列,但我不知道如何为整个网络创建。或者是否可以为代理创建一个状态图?

附注:我对Anylogic和javacoding都不熟悉。

英文:

I got 100 agents that are directed to a specific node in a network. The network consist of nodes, attractors and paths.

The problem is; when the agent is going to their node, they are not considering other agents (persons) in the network. I want them to stop if the agent in front of them stops.

I use process modeling library and the line is as follows:

-source
-move to
-delay (the agent stop for a moment on one node)
-move to (specific node)
-delay (stays in the specific node)

I tried to create a FIFO queue before the delay, but I do not know how to create that for the whole network. Or is it possible to make a statechart for the agents?

PS. I'm new with Anylogic and javacoding.

huangapple
  • 本文由 发表于 2020年4月6日 16:58:16
  • 转载请务必保留本文链接:https://java.coder-hub.com/61056196.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定