Struct BuiltNode<TNodeId, TSource>
- Namespace
- SpatialNET.Network
- Assembly
- SpatialNET.Network.dll
A node as the network builder writes it (ADR 0050).
public readonly record struct BuiltNode<TNodeId, TSource> : IEquatable<BuiltNode<TNodeId, TSource>> where TNodeId : notnull, IEquatable<TNodeId>Type Parameters
TNodeIdTSource
Implements
Inherited Members
Constructors
BuiltNode(GraphNode<TNodeId>, long, bool, TSource?)
A node as the network builder writes it (ADR 0050).
public BuiltNode(GraphNode<TNodeId> Node, long Shard, bool IsHelper, TSource? Source)Parameters
NodeGraphNode<TNodeId>-
The node.
Shardlong-
The shard the node belongs to.
IsHelperbool-
Whether it is a helper node, created where line ends meet without a point of the host.
SourceTSource?-
The host's reference to the point it came from; the default value for a helper node.
Properties
IsHelper
Whether it is a helper node, created where line ends meet without a point of the host.
public bool IsHelper { get; init; }Property Value
Merged
The real nodes merged into this one: they lay within the tolerance of it and the host chose this node to stay
(ADR 0054). null when there are none. The merged nodes are not written themselves.
public IReadOnlyList<CoincidentNode<TNodeId, TSource>>? Merged { get; init; }Property Value
- IReadOnlyList<CoincidentNode<TNodeId, TSource>>?
Node
The node.
public GraphNode<TNodeId> Node { get; init; }Property Value
- GraphNode<TNodeId>
Shard
The shard the node belongs to.
public long Shard { get; init; }Property Value
Source
The host's reference to the point it came from; the default value for a helper node.
public TSource? Source { get; init; }Property Value
- TSource?