LineEntity Constructor(Nullable<Int32>,Nullable<Double>,Nullable<Int32>,Boolean,Int32,Boolean)
- Last UpdatedNov 06, 2025
- 2 minute read
This overload of the line entity constructor includes parameters for defining properties of the line entity.
'Declaration
Public Function New( _
ByVal childOrder As Nullable(Of Integer), _
ByVal inputPercentage As Nullable(Of Double), _
ByVal segmentNumber As Nullable(Of Integer), _
ByVal canBeBottleneck As Boolean, _
ByVal entityId As Integer, _
ByVal lineIsChild As Boolean _
)
'Usage
Dim childOrder As Nullable(Of Integer)
Dim inputPercentage As Nullable(Of Double)
Dim segmentNumber As Nullable(Of Integer)
Dim canBeBottleneck As Boolean
Dim entityId As Integer
Dim lineIsChild As Boolean
Dim instance As New LineEntity(childOrder, inputPercentage, segmentNumber, canBeBottleneck, entityId, lineIsChild)
public LineEntity(
Nullable<int> childOrder,
Nullable<double> inputPercentage,
Nullable<int> segmentNumber,
bool canBeBottleneck,
int entityId,
bool lineIsChild
)
Parameters
- childOrder
- Optional. Holds the order number that is assigned to this entity in a line. The purpose of defining this number is to uniquely identify the sequence of entities in a line. A value is required only if the entity is in a line.
- inputPercentage
- Optional. Holds the input percentage that specifies how much of the outflow from the upstream entities in the line goes to this entity. The default is 100%. Not applicable when the entity is assigned as a parent of the line.
- segmentNumber
- Optional. Holds a unique number to differentiate this entity from other parallel entities in this child order position.
- canBeBottleneck
- Required. Holds the flag that indicates whether the entity can be considered as a bottleneck. If true (the default), then the entity is to be considered when determining the bottleneck entity for a line.
- entityId
- Required. Holds the unique identifier of the entity.
- lineIsChild
- Required. Holds the flag that indicates whether the entity is the parent of the line.