如何通过退出和进入块发送代理?

How to send agents through exit and enter blocks?

我正在尝试使用 anylogic 进行作业车间调度。我有 20 个作业(代理 'jobs')必须经过 5 台机器(每台机器一个单位容量资源)。我有两个数据库表,一个有每个作业通过机器的特定顺序,另一个有作业在各自机器中的处理时间。

This is what I have right now. The source creates the 20 jobs and I want that the exit blocks sent the jobs through their sequence. I made the 'nextmachine' function that I put in the On Exit section in each one of the exit blocks.

This is my 'nextmachine' function and the error I keep getting and don't know how to solve. Enterblocks is a collection of class ArrayList and element class Agent that have the 5 enter blocks and the col_machineSequence is a collection with each job machine sequence.

'nextmachine' 代码基于此 post How to store routings in job shop production in Anylogic

我之前提过一个问题。这里可以看到我之前的一些疑惑和一些建议。

提前致谢

The enterblocks collection is in the jobs agent, and is defined in this way.

-新错误:I have this error, I think it is related with collection col_machineSequence.I have that code onStartup section.

此处 enterblocks 个集合的 元素 class 属性 需要更改为 Enter。为此,请在下拉列表中 select 'Other' 并在将显示在下拉列表右侧的字段中键入 Enter