ITimeData Interface

Data container, storing a number of time steps and element values.

It has methods for handling as well single valued items (one element) and vector items with several elements.

Definition

Namespace: DHI.Mike1D.ResultDataAccess
Assembly: DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public interface ITimeData

Properties

NumberOfElements Number of elements.
NumberOfTimeSteps Number of time steps.

Methods

Add Adds a time step, with empty data
Add(Single) Adds a time step, setting the provided value

calling this method is only valid if NumberOfElements equals 1.

Add(Single) Adds a time step, setting the provided values

calling this method is only valid if NumberOfElements is greater than 1.

Clear Remove all values from the object.
GetValue Get value for the speficied time step and element
GetValues Get values for all elements for the speficied time step

calling this method is only valid if NumberOfElements is greater than 1.

RemoveAt Remove element at specified index.
SetValue Set value at the speficied time step and element

For single valued items, when NumberOfElements equals 1, set elementIndex to zero.

SetValues Set values for all elements at the speficied time step

calling this method is only valid if NumberOfElements is greater than 1.

Extension Methods

Expand Expand timeData from timestepIndex and assure room for length new time steps. If those time steps are already available, this does nothing.

The timestepIndex must be within or just after the end of the current set of time steps in timeData


(Defined by ResultDataExtensions)
GetValue Interplate a value in interval, with fraction, for the specified elementIndex
(Defined by ResultDataExtensions)

See Also