Reputation: 59
I have a this model in AnyLogic 7. How can I know which agent is released from "delayBA" unit using the code in the "function" function that is called when you exit the "delayBA" block?
Upvotes: 1
Views: 167
Reputation: 12660
Try agent.getIndex()
in the onRelease code box.
Also refer to why it is "agent" here: the magic light bulb
Upvotes: 2