NetworkDataTAddValue(ILocation, T, Boolean) Method

Add a value on the given location.

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 bool AddValue(
	ILocation location,
	T value,
	bool directionPositive
)

Parameters

location  ILocation
Location of the value.
value  T
Value at location
directionPositive  Boolean
When two values are defined at the same point, this specifies if the value is valid from the positive side or from the negative side. When ordered, values from the negative side goes before values from the positive side.

Return Value

Boolean
True on success.

Remarks

Adding like this is generally an O(n) operation. If adding in chainage increasing order, it is fast.

See Also