AnyLogic
Expand
Font size

Functions of an agent residing in a network

Function Description
Network getNetwork() Returns the network this agent lives in, actual for agents in continuous space.
Node getNetworkNode() Returns the network node this agent is currently located in; actual for agents in continuous space.
Network[] getNetworks() Returns the array of networks located in this agent, or empty array if the agent does not contain networks.
void setNetworkNode(Node node) Sets the current network location for the agent.

node — the network node.
void setNetworkNode(Attractor attractor) Sets the current network location for the agent.

node — the network node.
void setNetwork(Network network) Sets this agent to live in the network, actual for agents in continuous space.
How can we improve this article?