TimeDataVectorTS Class

Implementation of ITimeData for a vector item.

For each element it stores a list of time steps.

Definition

Namespace: DHI.Mike1D.ResultDataAccess
Assembly: DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
[SerializableAttribute]
public class TimeDataVectorTS : ITimeData
Inheritance
Object    TimeDataVectorTS
Implements
ITimeData

Constructors

TimeDataVectorTS(Int32) Initializes a new instance of the TimeDataVectorTS class that is empty and has the default initial time step capacity.
TimeDataVectorTS(Int32, Int32) Initializes a new instance of the TimeDataVectorTS class that is empty and has the specified initial time step capacity.

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.
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 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.

MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
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.

ToStringReturns a string that represents the current object.
(Inherited from Object)

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