AnyLogic 6 Discussion

Hello, there is a user-defined network option in the environment. If I want to import such an network, how can I do it? Thanks, Run
Hi! User-defined means that there are no connections initially and you have to use the following API to connect agents manually: int getConnectionsNumber() - returns the number of connected agents Agent getConnectedAgent( int index ) - returns the connected agent with the given index connectTo( Agent a ) - adds a given agent to the connections of this agent and vice versa boolean isConnectedTo( Agent a ) - tests if this agent is connected to a given agent boolean disconnectFrom( Agent a ) - disconnects this agent from a given other agent, returns false if the agents were not connected disconnectFromAll() - disconnects the agent from all other agents In what format do you have the network configuration?