-1

I would like to ask if there is an example piece of code or command that I can use for the following situation. I’m using agent based together with discrete events, and I need to trigger a estate transition from the agent based model when an agent arrives to a delay block in the discrete events agent, I think is only possible if one or both models are in the main tab, but is not possible when the diagrams are like single agents in different tabs, or maybe is because the kind of agents I’m using, or the way I’m creating those? I hope I explained myself clear enough, and thanks in advance.

______________________________________________________________________________Based in your recomendation I just created a very simple model to learn how to use stopDelay() I'm simply cannot make it work, I'm using an "event" just to be able to trigger the action. But does not work here is the picture of the small model with the current configuration: Single discrete events model with stopDelay

  • Hi Francisco, best open a new question with that example model, else it gets to confusing here. See how StackOverflow works here https://stackoverflow.com/help/how-to-ask and here: https://stackoverflow.com/help/minimal-reproducible-example – Benjamin Apr 17 '21 at 07:00

1 Answers1

0

You need to learn how agent comms work in AnyLogic. Check all the example models and the step-by-step tutorials. Also learn about OOP and how it works in AnyLogic, see this help article to get started.

Then, try specific mini models to get it to work yourself. If still stuck, do come back with the specific thing you already tried.

Benjamin
  • 3,769
  • 1
  • 11
  • 16