ITimeDependentUnitConversion Interface
Represents conversion time series for time dependent conversion rules between units.
public interface ITimeDependentUnitConversion : HAKOM.TSM.Net.Api.Units.IUnitConversion, System.IEquatable<HAKOM.TSM.Net.Api.Units.IUnitConversion>, System.IEquatable<HAKOM.TSM.Net.Api.Units.ITimeDependentUnitConversion>Implements IUnitConversion, System.IEquatable<IUnitConversion>, System.IEquatable<ITimeDependentUnitConversion>
Properties
Section titled “Properties”ITimeDependentUnitConversion.TimeSeries Property
Section titled “ITimeDependentUnitConversion.TimeSeries Property”Gets a reference to the time series whose data is used for conversions.
HAKOM.TSM.Net.Api.TimeSeries.Persistence.References.ITimeSeriesReference TimeSeries { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”ITimeDependentUnitConversion.ReadData<TValue>(ITimeSeriesDataReadingOptions, CancellationToken) Method
Section titled “ITimeDependentUnitConversion.ReadData<TValue>(ITimeSeriesDataReadingOptions, CancellationToken) Method”Reads the time series data of the conversion time series.
System.Threading.Tasks.Task<HAKOM.TSM.Net.Api.Data.TimeSeries.ITimeSeriesDataCollection<TValue>> ReadData<TValue>(HAKOM.TSM.Net.Api.Data.Persistence.TimeSeries.ITimeSeriesDataReadingOptions readingOptions, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken)) where TValue : System.IComparable<TValue>, System.IEquatable<TValue>;Type parameters
Section titled “Type parameters”TValue
The type of the values of the data points to be read.
Parameters
Section titled “Parameters”readingOptions ITimeSeriesDataReadingOptions
ITimeSeriesDataReadingOptions on how the data should be read.
cancellationToken System.Threading.CancellationToken
Propagates a notification if the operations should be canceled.
Returns
Section titled “Returns”System.Threading.Tasks.Task<HAKOM.TSM.Net.Api.Data.TimeSeries.ITimeSeriesDataCollection<TValue>>
A ITimeSeriesDataCollection<TValue> with additional information (unit, etc).