0
votes

I have a problem regarding Agent-based model.

I built two agents. One has statechart. I want that the statechart is able to be worked by other agents via send message or something..

How do I do?

2

2 Answers

1
votes

Check out the AnyLogic Help topic named "Communication between agents". This will show you how to send messages back and forth between Agents. Then read the topic named "Message Triggered Transition". This will show you how to move between states using messages. Essentially, you make your state chart, change whatever transitions you need to Message Transitions so that they will respond to messages, and then you use send(...) to send messages to the Agent that has the relevant state chart. Good luck!