英文:
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.
专注分享java语言的经验与见解,让所有开发者获益!
评论