TimeSeriesDataCalculationWrapper<TValue> Struct
A wrapper used for formula calculation.
public readonly struct TimeSeriesDataCalculationWrapper<TValue> : HAKOM.TSM.Net.Api.Data.TimeSeries.ITimeSeriesData<TValue>, HAKOM.TSM.Net.Api.Data.IData<TValue>, System.IEquatable<HAKOM.TSM.Net.Api.Data.IData<TValue>>, System.Numerics.IDivisionOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.Numerics.IDivisionOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>, TValue, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.Numerics.IMultiplyOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.Numerics.IMultiplyOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>, TValue, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.Numerics.ISubtractionOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.Numerics.ISubtractionOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>, TValue, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.Numerics.IAdditionOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.Numerics.IAdditionOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>, TValue, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.IEquatable<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>> where TValue : System.Numerics.IAdditionOperators<TValue, TValue, TValue>, System.Numerics.ISubtractionOperators<TValue, TValue, TValue>, System.Numerics.IMultiplyOperators<TValue, TValue, TValue>, System.Numerics.IDivisionOperators<TValue, TValue, TValue>, System.IEquatable<TValue>, System.IComparable<TValue>Type parameters
Section titled “Type parameters”TValue
Implements HAKOM.TSM.Net.Api.Data.TimeSeries.ITimeSeriesData<TValue>, HAKOM.TSM.Net.Api.Data.IData<TValue>, System.IEquatable<HAKOM.TSM.Net.Api.Data.IData<TValue>>, System.Numerics.IDivisionOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>,HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>,HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.Numerics.IDivisionOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>,TValue,HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.Numerics.IMultiplyOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>,HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>,HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.Numerics.IMultiplyOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>,TValue,HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.Numerics.ISubtractionOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>,HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>,HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.Numerics.ISubtractionOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>,TValue,HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.Numerics.IAdditionOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>,HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>,HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.Numerics.IAdditionOperators<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>,TValue,HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>, System.IEquatable<HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>>
Constructors
Section titled “Constructors”TimeSeriesDataCalculationWrapper(ITimeSeriesData<TValue>, IArithmeticOperations<TValue>, ITimeSeriesDataFactory, Nullable<int>) Constructor
Section titled “TimeSeriesDataCalculationWrapper(ITimeSeriesData<TValue>, IArithmeticOperations<TValue>, ITimeSeriesDataFactory, Nullable<int>) Constructor”Creates a new instance of TimeSeriesDataCalculationWrapper<TValue>.
public TimeSeriesDataCalculationWrapper(HAKOM.TSM.Net.Api.Data.TimeSeries.ITimeSeriesData<TValue> underlying, HAKOM.TSM.Net.Api.Data.TimeSeries.Math.IArithmeticOperations<TValue> arithmeticOperations, HAKOM.TSM.Net.Api.Data.TimeSeries.ITimeSeriesDataFactory timeSeriesDataFactory, System.Nullable<int> index=null);Parameters
Section titled “Parameters”underlying HAKOM.TSM.Net.Api.Data.TimeSeries.ITimeSeriesData<TValue>
The underlying ITimeSeriesData<TValue> which will be used for this wrapper.
arithmeticOperations HAKOM.TSM.Net.Api.Data.TimeSeries.Math.IArithmeticOperations<TValue>
The IArithmeticOperations<TValue> which will be used for all calculations.
timeSeriesDataFactory ITimeSeriesDataFactory
The ITimeSeriesDataFactory which will be used to qcreate new data points.
index System.Nullable<System.Int32>
The System.Int32 index of the data in the formula, to which the wrapper is referring.
Properties
Section titled “Properties”TimeSeriesDataCalculationWrapper<TValue>.Flag Property
Section titled “TimeSeriesDataCalculationWrapper<TValue>.Flag Property”Gets the Flag of the data point.
public HAKOM.TSM.Net.Api.Flags.Flag Flag { get; set; }Implements Flag
Property Value
Section titled “Property Value”TimeSeriesDataCalculationWrapper<TValue>.Index Property
Section titled “TimeSeriesDataCalculationWrapper<TValue>.Index Property”Gets the index of the data in the formula, to which the wrapper is referring.
public System.Nullable<int> Index { get; }Property Value
Section titled “Property Value”TimeSeriesDataCalculationWrapper<TValue>.Time Property
Section titled “TimeSeriesDataCalculationWrapper<TValue>.Time Property”Gets the time of the data point.
public System.DateTimeOffset Time { get; }Implements Time
Property Value
Section titled “Property Value”TimeSeriesDataCalculationWrapper<TValue>.Value Property
Section titled “TimeSeriesDataCalculationWrapper<TValue>.Value Property”Gets the value of the data point.
public TValue Value { get; set; }Implements Value
Property Value
Section titled “Property Value”Methods
Section titled “Methods”TimeSeriesDataCalculationWrapper<TValue>.Equals(TimeSeriesDataCalculationWrapper<TValue>) Method
Section titled “TimeSeriesDataCalculationWrapper<TValue>.Equals(TimeSeriesDataCalculationWrapper<TValue>) Method”Compares this wrapper to the given other wrapper for equality.
public bool Equals(HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> other);Parameters
Section titled “Parameters”other HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The TimeSeriesDataCalculationWrapper<TValue> which will be used for the equality check.
Returns
Section titled “Returns”System.Boolean
True, if the wrappers are equal, otherwise false.
TimeSeriesDataCalculationWrapper<TValue>.Equals(IData<TValue>) Method
Section titled “TimeSeriesDataCalculationWrapper<TValue>.Equals(IData<TValue>) Method”Compares this wrapper to the given IData<TValue> for equality.
public bool Equals(HAKOM.TSM.Net.Api.Data.IData<TValue>? other);Parameters
Section titled “Parameters”other HAKOM.TSM.Net.Api.Data.IData<TValue>
The IData<TValue> which will be used for the equality check.
Returns
Section titled “Returns”System.Boolean
True, if this wrapper is equal to the given IData<TValue>, otherwise false.
TimeSeriesDataCalculationWrapper<TValue>.Equals(object) Method
Section titled “TimeSeriesDataCalculationWrapper<TValue>.Equals(object) Method”Compares this wrapper to the given System.Object for equality.
public override bool Equals(object? obj);Parameters
Section titled “Parameters”obj System.Object
The System.Object which will be used for the equality check.
Returns
Section titled “Returns”System.Boolean
True, if this wrapper is equal to the given System.Object, otherwise false.
TimeSeriesDataCalculationWrapper<TValue>.GetHashCode() Method
Section titled “TimeSeriesDataCalculationWrapper<TValue>.GetHashCode() Method”Gets the hash code of this wrapper using its Time, Value, Flag and Index.
public override int GetHashCode();Returns
Section titled “Returns”System.Int32
An System.Int32 representation of the hash code of this wrapper.
TimeSeriesDataCalculationWrapper<TValue>.ToString() Method
Section titled “TimeSeriesDataCalculationWrapper<TValue>.ToString() Method”Gets a string representation of this wrapper using its Time, Value, Flag and Index.
public override string ToString();Returns
Section titled “Returns”Operators
Section titled “Operators”TimeSeriesDataCalculationWrapper<TValue>.operator +(TimeSeriesDataCalculationWrapper<TValue>, TimeSeriesDataCalculationWrapper<TValue>) Operator
Section titled “TimeSeriesDataCalculationWrapper<TValue>.operator +(TimeSeriesDataCalculationWrapper<TValue>, TimeSeriesDataCalculationWrapper<TValue>) Operator”Calls the Add method of IArithmeticOperations with the given wrappers.
public static HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> operator +(HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> left, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> right);Parameters
Section titled “Parameters”left HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The first operand.
right HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The second operand.
Returns
Section titled “Returns”HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The sum of the operands.
TimeSeriesDataCalculationWrapper<TValue>.operator +(TimeSeriesDataCalculationWrapper<TValue>, TValue) Operator
Section titled “TimeSeriesDataCalculationWrapper<TValue>.operator +(TimeSeriesDataCalculationWrapper<TValue>, TValue) Operator”Calls the Add method of IArithmeticOperations with the given wrapper and value.
public static HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> operator +(HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> left, TValue right);Parameters
Section titled “Parameters”left HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The first operand - the wrapper.
right TValue
The second operand - the value.
Returns
Section titled “Returns”HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The sum of the operands.
TimeSeriesDataCalculationWrapper<TValue>.operator /(TimeSeriesDataCalculationWrapper<TValue>, TimeSeriesDataCalculationWrapper<TValue>) Operator
Section titled “TimeSeriesDataCalculationWrapper<TValue>.operator /(TimeSeriesDataCalculationWrapper<TValue>, TimeSeriesDataCalculationWrapper<TValue>) Operator”Calls the Divide method of IArithmeticOperations with the given wrappers.
public static HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> operator /(HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> left, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> right);Parameters
Section titled “Parameters”left HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The first operand.
right HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The second operand.
Returns
Section titled “Returns”HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The quotient of the operands.
TimeSeriesDataCalculationWrapper<TValue>.operator /(TimeSeriesDataCalculationWrapper<TValue>, TValue) Operator
Section titled “TimeSeriesDataCalculationWrapper<TValue>.operator /(TimeSeriesDataCalculationWrapper<TValue>, TValue) Operator”Calls the Divide method of IArithmeticOperations with the given wrapper and value.
public static HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> operator /(HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> left, TValue right);Parameters
Section titled “Parameters”left HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The first operand - the wrapper.
right TValue
The second operand - the value.
Returns
Section titled “Returns”HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The quotient of the operands.
TimeSeriesDataCalculationWrapper<TValue>.operator ==(TimeSeriesDataCalculationWrapper<TValue>, TimeSeriesDataCalculationWrapper<TValue>) Operator
Section titled “TimeSeriesDataCalculationWrapper<TValue>.operator ==(TimeSeriesDataCalculationWrapper<TValue>, TimeSeriesDataCalculationWrapper<TValue>) Operator”Compares the two operands for equality.
public static bool operator ==(HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> left, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> right);Parameters
Section titled “Parameters”left HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The first operand.
right HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The second operand.
Returns
Section titled “Returns”System.Boolean
True, if the operands are equal, otherwise false.
TimeSeriesDataCalculationWrapper<TValue>.operator !=(TimeSeriesDataCalculationWrapper<TValue>, TimeSeriesDataCalculationWrapper<TValue>) Operator
Section titled “TimeSeriesDataCalculationWrapper<TValue>.operator !=(TimeSeriesDataCalculationWrapper<TValue>, TimeSeriesDataCalculationWrapper<TValue>) Operator”Compares the two operands for inequality.
public static bool operator !=(HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> left, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> right);Parameters
Section titled “Parameters”left HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The first operand.
right HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The second operand.
Returns
Section titled “Returns”System.Boolean
False, if the operands are equal, otherwise true.
TimeSeriesDataCalculationWrapper<TValue>.operator *(TimeSeriesDataCalculationWrapper<TValue>, TimeSeriesDataCalculationWrapper<TValue>) Operator
Section titled “TimeSeriesDataCalculationWrapper<TValue>.operator *(TimeSeriesDataCalculationWrapper<TValue>, TimeSeriesDataCalculationWrapper<TValue>) Operator”Calls the Multiply method of IArithmeticOperations with the given wrappers.
public static HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> operator *(HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> left, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> right);Parameters
Section titled “Parameters”left HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The first operand.
right HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The second operand.
Returns
Section titled “Returns”HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The product of the operands.
TimeSeriesDataCalculationWrapper<TValue>.operator *(TimeSeriesDataCalculationWrapper<TValue>, TValue) Operator
Section titled “TimeSeriesDataCalculationWrapper<TValue>.operator *(TimeSeriesDataCalculationWrapper<TValue>, TValue) Operator”Calls the Multiply method of IArithmeticOperations with the given wrapper and value.
public static HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> operator *(HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> left, TValue right);Parameters
Section titled “Parameters”left HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The first operand - the wrapper.
right TValue
The second operand - the value.
Returns
Section titled “Returns”HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The product of the operands.
TimeSeriesDataCalculationWrapper<TValue>.operator -(TimeSeriesDataCalculationWrapper<TValue>, TimeSeriesDataCalculationWrapper<TValue>) Operator
Section titled “TimeSeriesDataCalculationWrapper<TValue>.operator -(TimeSeriesDataCalculationWrapper<TValue>, TimeSeriesDataCalculationWrapper<TValue>) Operator”Calls the Subtract method of IArithmeticOperations with the given wrappers.
public static HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> operator -(HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> left, HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> right);Parameters
Section titled “Parameters”left HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The first operand.
right HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The second operand.
Returns
Section titled “Returns”HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The difference of the operands.
TimeSeriesDataCalculationWrapper<TValue>.operator -(TimeSeriesDataCalculationWrapper<TValue>, TValue) Operator
Section titled “TimeSeriesDataCalculationWrapper<TValue>.operator -(TimeSeriesDataCalculationWrapper<TValue>, TValue) Operator”Calls the Subtract method of IArithmeticOperations with the given wrapper and value.
public static HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> operator -(HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue> left, TValue right);Parameters
Section titled “Parameters”left HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The first operand - the wrapper.
right TValue
The second operand - the value.
Returns
Section titled “Returns”HAKOM.TSM.Net.Api.Calculation.Formulas.TimeSeriesDataCalculationWrapper<TValue>
The difference of the operands.