NetworkReachDataSetT Class

A set of values stored on reach. Contains values on locations or on spans. Implements IReachDataInterpolatorT for interpolation

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class NetworkReachDataSet<T> : IReachDataInterpolator<T>, 
	INetworkReachData<T>
Inheritance
Object    NetworkReachDataSetT
Implements
INetworkReachDataT, IReachDataInterpolatorT

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:DHI.Mike1D.Generic.NetworkReachDataSet`1"]

Remarks

Implementation details: Each value is sorted by its chainage, for fast searching. For spans, the start chainage is used for sorting.

when inserting a new value, it is checked that a new span does not overlap any existing locations/spans, or a new location is not contained by any existing spans.

Properties

ChainageSortedValues Values on reach, sorted by chainage
GlobalValue Get/Set the value covering the entire reach
ReachId Id of reach
Values The set of chainages and values defined, in case IsGlobal is false.

Methods

Add(Double, T) Add a value to the set on the current chainage location. This will fail if set is global.
Add(Double, T, Boolean) Add a value to the set on the current chainage location. This will fail if set is global.
Add(Double, Double, T) Add a value defined within the given span. This corresponds to adding the value at the start and end location of the span.
ContainsValue(Double, Direction) Check if a value already exists at the specified chainage, or if the specified chainage is included in a value span.

The direction can specify if any value or if only a negative or positive direction value is searched for.

For a reach with a global value, true is returned.

Chainage value must be exact, i.e. there is no tolerance in the search.

ContainsValue(Double, Double) Check if one ore more values are defined inside the chainage span.

Values at start of span with negative direction and end of span with positive direction is not inside span, while values at start of span with positive direction and end of span with negative direction is considered inside span.

Values inside other spans can share start/end chainage without being inside.

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetValue(Double, T) Get value at the given location.
GetValue(Double, T, Boolean) Get value at the given location.
IsGlobal Returns true if this set holds only one value covering entire reach
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also