Table of Contents

Interface INetworkState<TNodeId, TEdgeId>

Namespace
SpatialNET.Network
Assembly
SpatialNET.Network.dll

The switching state of a network for one search (ADR 0049). The normal state is part of the records; an implementation returns deviations from it. Each method gets the whole record, so a host can decide by type.

public interface INetworkState<TNodeId, TEdgeId> where TNodeId : notnull, IEquatable<TNodeId> where TEdgeId : notnull, IEquatable<TEdgeId>

Type Parameters

TNodeId

The host's node id.

TEdgeId

The host's edge id.

Methods

GetDirection(in GraphEdge<TNodeId, TEdgeId>)

The direction in which the edge may be walked. The normal state is SpatialNET.Network.GraphEdge`2.Direction.

EdgeDirection GetDirection(in GraphEdge<TNodeId, TEdgeId> edge)

Parameters

edge GraphEdge<TNodeId, TEdgeId>

Returns

EdgeDirection

IsBlocked(in GraphNode<TNodeId>)

Whether the node is blocked: reached, but not passed. The normal state is SpatialNET.Network.GraphNode`1.Blocked.

bool IsBlocked(in GraphNode<TNodeId> node)

Parameters

node GraphNode<TNodeId>

Returns

bool

IsDisabled(in GraphEdge<TNodeId, TEdgeId>)

Whether the edge is disabled: it does not exist for the search. The normal state is SpatialNET.Network.GraphEdge`2.Disabled.

bool IsDisabled(in GraphEdge<TNodeId, TEdgeId> edge)

Parameters

edge GraphEdge<TNodeId, TEdgeId>

Returns

bool