NetworkExtensions Class

Extension methods related to NetworkData classes

Definition

Namespace: DHI.Mike1D.NetworkDataAccess
Assembly: DHI.Mike1D.NetworkDataAccess (in DHI.Mike1D.NetworkDataAccess.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public static class NetworkExtensions
Inheritance
Object    NetworkExtensions

Methods

BinarySearch(IListIReach, ILocation) Find the reach that includes the given location. Assuming the reaches are sorted.

Location comparisons are case insensitive.

BinarySearch(IListIReach, ILocation, Double) Find the reach that includes the given location. Assuming the reaches are sorted.

Location comparisons are case insensitive, and chainage comparisons uses the tolerance, i.e., the location can be tolerance outside the span and still be accepted. tolerance may be negative (it location has to be somewhat inside span).

BuildReachSearcherReachSearcherT containing all reaches in the network.
HasCatchmentDischarge Retruns true if the flowType includes runoff
HasRunoff Retruns true if the flowType includes runoff
IsPointConnection Retruns true if the connection is a point connection
IsStructureReach Returns true when reach is an IStructureReach
Sort Sorts a list of reaches, first based on their ID, secondly on their start chainage value

See Also