Struct GraphNode<TNodeId>
- Namespace
- SpatialNET.Network
- Assembly
- SpatialNET.Network.dll
A node of a network as the host returns it (ADR 0049).
public readonly record struct GraphNode<TNodeId> : IEquatable<GraphNode<TNodeId>> where TNodeId : notnull, IEquatable<TNodeId>Type Parameters
TNodeId-
The host's node id.
Implements
Inherited Members
Constructors
GraphNode(TNodeId, int, Coordinate, bool)
A node of a network as the host returns it (ADR 0049).
public GraphNode(TNodeId Id, int TypeId, Coordinate Location, bool Blocked = false)Parameters
IdTNodeId-
The id; unique across all feature classes of the host.
TypeIdint-
The type (see SpatialNET.Network.TypeRegistry);
0for an untyped helper node. LocationCoordinate-
Where the node lies; set for every node, also for helper nodes.
Blockedbool-
The normal switching state: a blocked node is reached, but not passed.
Properties
Blocked
The normal switching state: a blocked node is reached, but not passed.
public bool Blocked { get; init; }Property Value
Id
The id; unique across all feature classes of the host.
public TNodeId Id { get; init; }Property Value
- TNodeId
Location
Where the node lies; set for every node, also for helper nodes.
public Coordinate Location { get; init; }Property Value
TypeId
The type (see SpatialNET.Network.TypeRegistry); 0 for an untyped helper node.
public int TypeId { get; init; }