Method | Description | |
---|---|---|
AggregateCalculator ( NodeId aggregateId, System.DateTime startTime, System.DateTime endTime, double processingInterval, bool stepped, AggregateConfiguration configuration ) : System |
Initializes the calculation stream.
|
|
GetProcessedValue ( bool returnPartial ) : DataValue |
Returns the next processed value.
|
|
HasEndTimePassed ( System.DateTime currentTime ) : bool |
Returns true if the specified time is later than the end of the current interval. Return true if time flows forward and the time is later than the end time. |
|
QueueRawValue ( DataValue value ) : bool |
Queues a raw value for processing.
|
|
SlopedInterpolate ( System.DateTime timestamp, DataValue earlyBound, DataValue lateBound ) : DataValue |
Calculate the value at the timestamp using slopped interpolation.
|
|
SteppedInterpolate ( System.DateTime timestamp, DataValue earlyBound ) : DataValue |
Calculate the value at the timestamp using slopped interpolation.
|
Method | Description | |
---|---|---|
AggregateCalculator ( NodeId aggregateId ) : System |
Creates a default aggregator.
|
|
CastToDouble ( DataValue value ) : double |
Converts the value to a double for use in calculations (throws exceptions if conversion fails).
|
|
CastToOriginalType ( double value, DataValue original ) : |
Converts the value back to its original type (throws exceptions if conversion fails).
|
|
CompareTimestamps ( DataValue value1, DataValue value2 ) : int |
Compares timestamps for two DataValues according to the current UseServerTimestamp setting.
|
|
CompareTimestamps ( DataValue value1, LinkedListNode |
Compares timestamps for two DataValues according to the current UseServerTimestamp setting.
|
|
CompareTimestamps ( System.DateTime value1, LinkedListNode |
Compares timestamps for a timestamp to a DataValue according to the current UseServerTimestamp setting.
|
|
CompareTimestamps ( LinkedListNode |
Compares timestamps for two DataValues according to the current UseServerTimestamp setting.
|
|
ComputeValue ( Opc.Ua.Server.TimeSlice slice ) : DataValue |
Calculates the value for the timeslice.
|
|
CreateSlice ( Opc.Ua.Server.TimeSlice previousSlice ) : Opc.Ua.Server.TimeSlice |
Creates a new time slice to process.
|
|
GetNoDataValue ( System.DateTime timestamp ) : DataValue |
Return a value indicating there is no data in the time slice.
|
|
GetNoDataValue ( Opc.Ua.Server.TimeSlice slice ) : DataValue |
Return a value indicating there is no data in the time slice.
|
|
GetRegionsInValueSet ( List |
Returns the values in the list with simple bounds.
|
|
GetSimpleBound ( System.DateTime timestamp, Opc.Ua.Server.TimeSlice slice ) : DataValue |
Returns the simple bound for the timestamp.
|
|
GetTimeBasedStatusCode ( List |
Calculates the status code for the slice
|
|
GetTimeBasedStatusCode ( Opc.Ua.Server.TimeSlice slice, List |
Calculates the status code for the slice
|
|
GetTimestamp ( Opc.Ua.Server.TimeSlice slice ) : System.DateTime |
Returns the timestamp to use for the slice value.
|
|
GetValueBasedStatusCode ( Opc.Ua.Server.TimeSlice slice, List |
Calculates the value based status code for the slice
|
|
GetValues ( Opc.Ua.Server.TimeSlice slice ) : List |
Returns the values between the start time and the end time for the slice.
|
|
GetValuesWithInterpolatedBounds ( Opc.Ua.Server.TimeSlice slice ) : List |
Returns the values in the list with interpolated bounds.
|
|
GetValuesWithSimpleBounds ( Opc.Ua.Server.TimeSlice slice ) : List |
Returns the values in the list with simple bounds.
|
|
Initialize ( NodeId aggregateId, System.DateTime startTime, System.DateTime endTime, double processingInterval, bool stepped, AggregateConfiguration configuration ) : void |
Initializes the calculation stream.
|
|
Interpolate ( System.DateTime timestamp, Opc.Ua.Server.TimeSlice reference ) : DataValue |
Interpolates a value at the timestamp.
|
|
Interpolate ( Opc.Ua.Server.TimeSlice slice ) : DataValue |
Calculate the interpolate aggregate for the timeslice.
|
|
IsGood ( DataValue value ) : bool |
Checks if the value is good according to the configuration rules.
|
|
UpdateSlice ( Opc.Ua.Server.TimeSlice slice ) : bool |
Creates a new time slice to process.
|
protected AggregateCalculator ( NodeId aggregateId ) : System | ||
aggregateId | NodeId | |
return | System |
public AggregateCalculator ( NodeId aggregateId, System.DateTime startTime, System.DateTime endTime, double processingInterval, bool stepped, AggregateConfiguration configuration ) : System | ||
aggregateId | NodeId | The aggregate function to apply. |
startTime | System.DateTime | The start time. |
endTime | System.DateTime | The end time. |
processingInterval | double | The processing interval. |
stepped | bool | Whether to use stepped interpolation. |
configuration | AggregateConfiguration | The aggregate configuration. |
return | System |
protected static CastToDouble ( DataValue value ) : double | ||
value | DataValue | |
return | double |
protected static CastToOriginalType ( double value, DataValue original ) : |
||
value | double | |
original | DataValue | |
return |
protected CompareTimestamps ( DataValue value1, DataValue value2 ) : int | ||
value1 | DataValue | The first value to compare. |
value2 | DataValue | The second value to compare. |
return | int |
protected CompareTimestamps ( DataValue value1, LinkedListNode |
||
value1 | DataValue | The first value to compare. |
value2 | LinkedListNode |
The second value to compare. |
return | int |
protected CompareTimestamps ( System.DateTime value1, LinkedListNode |
||
value1 | System.DateTime | The timestamp to compare. |
value2 | LinkedListNode |
The data value to compare. |
return | int |
protected CompareTimestamps ( LinkedListNode |
||
value1 | LinkedListNode |
The first value to compare. |
value2 | LinkedListNode |
The second value to compare. |
return | int |
protected ComputeValue ( Opc.Ua.Server.TimeSlice slice ) : DataValue | ||
slice | Opc.Ua.Server.TimeSlice | The slice to process. |
return | DataValue |
protected CreateSlice ( Opc.Ua.Server.TimeSlice previousSlice ) : Opc.Ua.Server.TimeSlice | ||
previousSlice | Opc.Ua.Server.TimeSlice | The previous processed slice. |
return | Opc.Ua.Server.TimeSlice |
protected GetNoDataValue ( System.DateTime timestamp ) : DataValue | ||
timestamp | System.DateTime | |
return | DataValue |
protected GetNoDataValue ( Opc.Ua.Server.TimeSlice slice ) : DataValue | ||
slice | Opc.Ua.Server.TimeSlice | |
return | DataValue |
public GetProcessedValue ( bool returnPartial ) : DataValue | ||
returnPartial | bool | If true a partial interval should be processed. |
return | DataValue |
protected GetRegionsInValueSet ( List |
||
values | List |
|
ignoreBadData | bool | |
useSteppedCalculations | bool | |
return | List |
protected GetSimpleBound ( System.DateTime timestamp, Opc.Ua.Server.TimeSlice slice ) : DataValue | ||
timestamp | System.DateTime | |
slice | Opc.Ua.Server.TimeSlice | |
return | DataValue |
protected GetTimeBasedStatusCode ( List |
||
regions | List |
|
statusCode | StatusCode | |
return | StatusCode |
protected GetTimeBasedStatusCode ( Opc.Ua.Server.TimeSlice slice, List |
||
slice | Opc.Ua.Server.TimeSlice | |
values | List |
|
defaultCode | StatusCode | |
return | StatusCode |
protected GetTimestamp ( Opc.Ua.Server.TimeSlice slice ) : System.DateTime | ||
slice | Opc.Ua.Server.TimeSlice | |
return | System.DateTime |
protected GetValueBasedStatusCode ( Opc.Ua.Server.TimeSlice slice, List |
||
slice | Opc.Ua.Server.TimeSlice | |
values | List |
|
statusCode | StatusCode | |
return | StatusCode |
protected GetValues ( Opc.Ua.Server.TimeSlice slice ) : List |
||
slice | Opc.Ua.Server.TimeSlice | |
return | List |
protected GetValuesWithInterpolatedBounds ( Opc.Ua.Server.TimeSlice slice ) : List |
||
slice | Opc.Ua.Server.TimeSlice | |
return | List |
protected GetValuesWithSimpleBounds ( Opc.Ua.Server.TimeSlice slice ) : List |
||
slice | Opc.Ua.Server.TimeSlice | |
return | List |
public HasEndTimePassed ( System.DateTime currentTime ) : bool | ||
currentTime | System.DateTime | |
return | bool |
protected Initialize ( NodeId aggregateId, System.DateTime startTime, System.DateTime endTime, double processingInterval, bool stepped, AggregateConfiguration configuration ) : void | ||
aggregateId | NodeId | The aggregate function to apply. |
startTime | System.DateTime | The start time. |
endTime | System.DateTime | The end time. |
processingInterval | double | The processing interval. |
stepped | bool | Whether to use stepped interpolation. |
configuration | AggregateConfiguration | The aggregate configuration. |
return | void |
protected Interpolate ( System.DateTime timestamp, Opc.Ua.Server.TimeSlice reference ) : DataValue | ||
timestamp | System.DateTime | The timestamp. |
reference | Opc.Ua.Server.TimeSlice | The timeslice that contains the timestamp. |
return | DataValue |
protected Interpolate ( Opc.Ua.Server.TimeSlice slice ) : DataValue | ||
slice | Opc.Ua.Server.TimeSlice | |
return | DataValue |
protected IsGood ( DataValue value ) : bool | ||
value | DataValue | The value to test. |
return | bool |
public QueueRawValue ( DataValue value ) : bool | ||
value | DataValue | The data value to process. |
return | bool |
public static SlopedInterpolate ( System.DateTime timestamp, DataValue earlyBound, DataValue lateBound ) : DataValue | ||
timestamp | System.DateTime | |
earlyBound | DataValue | |
lateBound | DataValue | |
return | DataValue |
public static SteppedInterpolate ( System.DateTime timestamp, DataValue earlyBound ) : DataValue | ||
timestamp | System.DateTime | |
earlyBound | DataValue | |
return | DataValue |
protected UpdateSlice ( Opc.Ua.Server.TimeSlice slice ) : bool | ||
slice | Opc.Ua.Server.TimeSlice | The slice to update. |
return | bool |