简体   繁体   English

从给定代理访问参数和变量到 Main

[英]Accessing parameter and variable from a given agent onto Main

Trying to visualize the value of a variable and a parameter in a time plot from the agent "SteelMill" onto the "Main" Agent.试图在时间 plot 从代理“SteelMill”到“主”代理上可视化变量和参数的值。

Cannot seem to access it through the SteelMill agent itself, and both the variable and parameter is both public.似乎无法通过 SteelMill 代理本身访问它,并且变量和参数都是公共的。

Any possible solutions to this?有什么可能的解决方案吗?

Check out screenshots for further problem statement: Picture 1查看屏幕截图以获取更多问题说明:图 1

Picture 2图二

Use steelMills.get(0).Inventory on Main.在 Main 上使用steelMills.get(0).Inventory This will access the first steel mill in your population on Main.这将访问您在 Main 上的第一家钢铁厂。

Please learn more about model structure and " where am I and how do I get to " in the AnyLogic help.请在 AnyLogic 帮助中了解有关 model 结构和“ 我在哪里以及如何到达”的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM