Table of Contents

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

TNodeId
TSource

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

Node GraphNode<TNodeId>

The node.

Shard long

The shard the node belongs to.

IsHelper bool

Whether it is a helper node, created where line ends meet without a point of the host.

Source TSource?

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

bool

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

long

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?