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. There can be multiple networks in one model.
When you configure the Visible, Z level and Show in network properties, please remember that all network elements will inherit the values of these properties.
To select a 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 – Here you specify whether the network is visible on animation at model runtime, or not. Using the control, choose yes or no.
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.
getNearestNode(double x, double y, double z) - Returns the
node that is nearest to the point with the provided x, y and z
Parameters: double x, double y, double z - the x, y and z coordinates of the point.
getNearestNode(Point p) - Returns the node that is nearest
to the provided Point.
Parameter: Point p - the point.
Agent getSpace() - Returns the agent where this network is defined.
double getZ() - Returns the network's base level Z-coordinate. The Z-coordinates of the elements belonging to this network are relative to the network's Z-level.
Agent movement inside and outside network
API reference: Network class