A network is a set of nodes interconnected with segments. You draw a network when you need network- or layout-based modeling. Typically, it is used when the modeled processes are going on in a certain physical space and include movement of agents and resources. For example, this can be a hospital or a plant logistics process.
You define the network topology by drawing specific space markup elements (nodes and paths) e.g. over a facility map used as a background. In the network, a node defines the place where agents may stay, while paths connecting nodes define the routes that agents may take when moving from one node to another. Movement is always done along the shortest path between the origin and the destination nodes. Agents and resource units can have individual speeds and these speeds can change dynamically. For example, you can set different speeds for the loaded and the unloaded forklift truck. It is assumed that segments have unlimited capacity and agents moving along a segment do not interfere.
The Network element is automatically created when two network elements (a path and a node, or two paths) are connected together. AnyLogic also automatically creates a network for every single path element that is not connected to any other network elements.
There can be multiple networks in one model.
When you configure the Visible, Z and Show in network properties, please remember that all network elements will inherit the values of these properties.
To select a network
- Click on any element belonging to the network. The element will be selected.
- Click on this element again to select the entire network.
Name — The name of the network. The name is used to identify and access the network from code and flowchart blocks properties.
Ignore — If selected, the network is excluded from the model.
Visible on upper agent — If selected, the network is also visible on the upper agent where this agent lives.
Lock — If selected, the network is locked. Locked elements do not react to mouse clicks — it is impossible to select them in the graphical editor until you unlock them. It is frequently needed when you want to prevent editing the element while placing other elements over it.
Visible — Here you specify whether the network is visible on animation at model runtime, or not. Using the control, choose yes or no.
Level — Level on which this network is located.
Z — Z-coordinate of the network.
Show in — Here you can choose whether you want the shape to be shown both in 2D and 3D animation, or in 2D only, or in 3D only.
|Node getNearestNode(double x, double y, double z)
Returns the node that is nearest to the point with the provided x, y, and z coordinates.
double x, double y, double z — the x, y, and z coordinates of the point.
|Node getNearestNode(Point p)
Returns the node that is nearest to the provided Point.
Point p — the point.
|Returns the agent where this network is defined.
|Returns the network’s Z-coordinate. The Z-coordinates of the elements belonging to this network are relative to the network’s Z.
|Returns the level, where this network is located.
How can we improve this article?