Consider two agents, with statecharts. Now I have read that the two are able to communicate or make use of each others statecharts, via messages.
Now, the question is, how does this method of communication work ? As in does a message initiate the entire statechart present or does it initiate a particular part of the statechart and how does it do so?
I have not been able to find the answer in the anylogic guide(help) provided.
the statechart is not initiated with a message. It is initiated when the agent is created, after that the statechart proceeds according to the criteria you've set up in it.
the communication between agents can be used for triggers, ie. you set a condition for transitions, so that it need a specific message to proceed to the next state.
reference:
Communication between agents
and
Message Triggered Transition