Commonly you may need to send some information from one agent to another. In AnyLogic you can establish interaction between different agents by passing
messages
– data units, carrying some useful information. Messages can model various objects of the real world. You may implement notification or signaling mechanism in your system – in this case, messages may represent commands or signals passed in a control
system. Or you may need to model agent flow in your system, where messages represent agents – the items that are being served, produced, or otherwise acted on by your process: documents in business processes, customers in service systems, parts and
products in manufacturing models. You may have different types of agents in the same model.
Messages are sent and received via the special elements of agents – ports. Message passing is enabled only between ports connected by connectors – paths used by messages to flow through the model.