简体   繁体   中英

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.

Cannot seem to access it through the SteelMill agent itself, and both the variable and parameter is both public.

Any possible solutions to this?

Check out screenshots for further problem statement: Picture 1

Picture 2

Use steelMills.get(0).Inventory on Main. This will access the first steel mill in your population on Main.

Please learn more about model structure and " where am I and how do I get to " in the AnyLogic help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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