Click or drag to resize

DeviceStatisticsHelperT Class

Helper class for calculating device statistics.
Inheritance Hierarchy
SystemObject
  GSF.TimeSeries.StatisticsDeviceStatisticsHelperT

Namespace: GSF.TimeSeries.Statistics
Assembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.218-beta
Syntax
public class DeviceStatisticsHelper<T>
where T : class, IDevice
View Source

Type Parameters

T
The type of the devices whose statistics are to be calculated.

The DeviceStatisticsHelperT type exposes the following members.

Constructors
 NameDescription
Public methodDeviceStatisticsHelperT Creates a new instance of the DeviceStatisticsHelperT class.
Top
Properties
 NameDescription
Public propertyDevice Gets the device whose statistics are being calculated using this helper.
Public propertyExpectedMeasurementsPerSecond Gets or sets the number of measurements expected to be received from the device per second.
Top
Methods
 NameDescription
Public methodAddToMeasurementsReceived Increases the count of the number of measurements received from the device.
Public methodAddToMeasurementsWithError Increases the count of the number of measurements received while the device is reporting errors.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodMarkDeviceTimestamp Marks the latest timestamp of device measurements used to calculate global timestamp statistics.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodReset Resets the member variables used to track statistics for the device wrapped by this helper.
Public methodReset(Int64) Resets the member variables used to track statistics for the device wrapped by this helper.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUpdate Updates the statistics for the number of measurements received and the number of measurements expected in the IDevice wrapped by this helper.
Public methodUpdate(Int64) Updates the statistics for the number of measurements received and the number of measurements expected in the IDevice wrapped by this helper.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also