Net Line: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 18: | Line 18: | ||
Net lines can have any number of arbitrary [[attributes]]. A few attribute names are reserved and have a special function. | Net lines can have any number of arbitrary [[attributes]]. A few attribute names are reserved and have a special function. | ||
'''DEF_DIAMETER_M''': The diameter of the net line. This can be used in calculations and also affects the width of the net line as visible in the [[3D World]]. | |||
The diameter of the net line. This can be used in calculations and also affects the width of the net line as visible in the [[3D World]]. | |||
'''FLOW''': The flow of a net line indicates the amount of the resource that is transported through this net line. If the network's graph is a tree, the direction is implicit and the value can be consistently positive. In more complicated networks, the direction in which the resource is transported may be relevant, and can be indicated with a positive or negative value. By default, the attribute name FLOW is preferred. The specific attribute name used for this is defined as part of the settings of the [[net type]]. | |||
The flow of a net line indicates the amount of the resource that is transported through this net line. If the network's graph is a tree, the direction is implicit and the value can be consistently positive. In more complicated networks, the direction in which the resource is transported may be relevant, and can be indicated with a positive or negative value. By default, the attribute name FLOW is preferred. The specific attribute name used for this is defined as part of the settings of the [[net type]]. | |||
'''VISUALIZATION_DIAMETER_M''': The diameter of the net line. Similar to DEF_DIAMETER_M, this attribute affects the visualized width of the net line in the [[3D World]], but is not intended to be used in calculations. | |||
The diameter of the net line. Similar to DEF_DIAMETER_M, this attribute affects the visualized width of the net line in the [[3D World]], but is not intended to be used in calculations. | |||
==Restrictions on networks== | ==Restrictions on networks== | ||
* Networks cannot contain any cycles. All networks should be defined as a tree. | * Networks cannot contain any cycles. All networks should be defined as a tree. | ||
* A net node can be connected to 1, 2, or more [[net lines]], except when that node is a [[net load|load node]]. | * A net node can be connected to 1, 2, or more [[net lines]], except when that node is a [[net load|load node]]. |
Revision as of 15:38, 24 October 2017
What are net lines
A line, in network simulation terms, is a connection between different nodes in a resource transport and distribution network. Along with the nodes of the network they form a graph.
How net lines relate to the Tygron Engine
In the Tygron Engine, net lines and net nodes, along with net loads, form distribution networks. They are defined by 2 net nodes, a starting node and an end node, and a net line definition.
Properties of net lines
Net lines have a number of properties, mostly related to visualization. They also allow for the definitions of arbitrary attributes.
Net line definitions
Each net line has a reference to a net line definition. The net line definition's attributes, such as its color or visualization diameter, are inherited by their net lines. This allows a single set of properties to be applied to all lines in the network.
Attributes
Net lines can have any number of arbitrary attributes. A few attribute names are reserved and have a special function.
DEF_DIAMETER_M: The diameter of the net line. This can be used in calculations and also affects the width of the net line as visible in the 3D World.
FLOW: The flow of a net line indicates the amount of the resource that is transported through this net line. If the network's graph is a tree, the direction is implicit and the value can be consistently positive. In more complicated networks, the direction in which the resource is transported may be relevant, and can be indicated with a positive or negative value. By default, the attribute name FLOW is preferred. The specific attribute name used for this is defined as part of the settings of the net type.
VISUALIZATION_DIAMETER_M: The diameter of the net line. Similar to DEF_DIAMETER_M, this attribute affects the visualized width of the net line in the 3D World, but is not intended to be used in calculations.