Skip to content

Commit ecd84fc

Browse files
committed
Merge branch 'develop' into staging
2 parents 195bdbd + e12babf commit ecd84fc

1 file changed

Lines changed: 0 additions & 45 deletions

File tree

src/DBMDataRef/DBMDataRef.vb

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,51 +1016,6 @@ Namespace Vitens.DynamicBandwidthMonitor
10161016
End Function
10171017

10181018

1019-
Public Overrides Function InterpolatedValuesByCount(
1020-
timeRange As AFTimeRange, numberOfValues As Integer,
1021-
filterExpression As String, includeFilteredValues As Boolean,
1022-
inputAttributes As AFAttributeList, inputValues As AFValues()) As AFValues
1023-
1024-
' https://docs.osisoft.com/bundle/af-sdk/page/html/M_OSIsoft_AF_Asset_AFDa
1025-
' taReference_InterpolatedValuesByCount.htm
1026-
' Retrieves interpolated values over the specified time range evenly
1027-
' spaced using the numberOfValues.
1028-
1029-
Dim interval As AFTimeSpan
1030-
1031-
DBM.Logger.LogDebug(
1032-
"timeRange.StartTime " &
1033-
timeRange.StartTime.LocalTime.ToString("s") & "; " &
1034-
"timeRange.EndTime " &
1035-
timeRange.EndTime.LocalTime.ToString("s") & "; " &
1036-
"numberOfValues " & numberOfValues.ToString, Attribute.GetPath)
1037-
1038-
InterpolatedValuesByCount = New AFValues
1039-
If timeRange.StartTime = timeRange.EndTime Or numberOfValues = 1 Then
1040-
' Return a single value.
1041-
InterpolatedValuesByCount.Add(
1042-
GetValue(Nothing, timeRange.StartTime, Nothing, Nothing))
1043-
Else
1044-
' Return multiple values.
1045-
interval = New AFTimeSpan(0, 0, 0, 0, 0,
1046-
(timeRange.EndTime.UtcSeconds-timeRange.StartTime.UtcSeconds)/
1047-
(numberOfValues-1), 0)
1048-
InterpolatedValuesByCount = Summaries(
1049-
New AFTimeRange(timeRange.StartTime, timeRange.EndTime+interval),
1050-
interval,
1051-
AFSummaryTypes.Average,
1052-
AFCalculationBasis.TimeWeighted,
1053-
AFTimestampCalculation.EarliestTime)(AFSummaryTypes.Average)
1054-
End If
1055-
1056-
DBM.Logger.LogTrace(
1057-
"Return " & InterpolatedValuesByCount.Count.ToString & " values",
1058-
Attribute.GetPath)
1059-
Return InterpolatedValuesByCount
1060-
1061-
End Function
1062-
1063-
10641019
End Class
10651020

10661021

0 commit comments

Comments
 (0)