Function | Description |
---|---|
Network getNetwork() | Returns the network this agent lives in. Applies to agents in continuous space. |
Node getNetworkNode() | Returns the network node where this agent is currently located. Applies to agents in continuous space. |
Network[] getNetworks() | Returns the array of networks located within this agent, or an empty array if the agent contains no 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. attractor — the attractor at the node (within the network). |
void setNetwork(Network network) |
Sets this agent to live in the network. Applies to agents in continuous space. network — The network in which the agent will live. |
-
How can we improve this article?
-