How Do I Reference Main From Within An Agent?
I have a resourcepool of 1 of an agent moving items in Main. There the process is modelled with The Process Modelling Library. The Agent does neither Enter not Exit the Process Model, but perists indefinitely.
I now wish to add a statechart to my agent, in which I want to test if the agent arrived at a certain Queue Block in Main. However, I cannot reference Main from my agent's statechart. Neither 'get_Main()' nor 'main' work, as I also don't have the arrow with main on it (I have seen this on reference models).
I'm using Anylogic 8.1
The main arrow I found in reference models
Edit: solution i found: Use a variable and set it to Main, you can reference items in Main over this variable.