【问题标题】:How do I know which agent is released from the Delay block?我如何知道从延迟块中释放了哪个代理?
【发布时间】:2016-10-15 18:04:25
【问题描述】:

我在 AnyLogic 7 中有一个这个模型。我如何使用退出“delayBA”块时调用的“function”函数中的代码知道哪个代理从“delayBA”单元释放?

【问题讨论】:

    标签: java modeling anylogic


    【解决方案1】:

    在 onRelease 代码框中尝试agent.getIndex()。

    这里也可以参考一下为什么是“代理”:the magic light bulb

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-04-19
      • 2021-10-22
      • 2018-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多