Click or drag to resize

Measurement Class

Represents a basic measurement implementation.
Inheritance Hierarchy

Namespace: GSF.TimeSeries
Assembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.181-beta
Syntax

The Measurement type exposes the following members.

Constructors
 NameDescription
Public methodMeasurement Constructs a new Measurement using default settings.
Top
Properties
 NameDescription
Public propertyAdder Gets an offset to add to the measurement value. This defaults to 0.0.
Public propertyAdjustedValue Gets the adjusted numeric value of this measurement, taking into account the specified Adder and Multiplier offsets.
Public propertyCreatedTimestamp Gets timestamp, in ticks, of when this Measurement was created.
Public propertyID Gets the Guid based signal ID of the Measurement implementation.
Public propertyKey Gets the primary MeasurementKey of this Measurement implementation.
Public propertyLifespan Gets the life-span of this Measurement since its creation.
Public propertyMeasurementValueFilter Gets function used to apply a down-sampling filter over a sequence of Measurement values.
Public propertyMetadata Gets or sets associated metadata values for the Measurement implementation.
Public propertyMultiplier Gets a multiplicative offset to apply to the measurement value. This defaults to 1.0.
Public propertyStateFlags Gets or sets MeasurementStateFlags associated with this Measurement.
Public propertyTagName Gets the text based tag name of this Measurement implementation.
Public propertyTimestamp Gets or sets exact timestamp, in ticks, of the data represented by this Measurement.
Public propertyValue Gets or sets the raw measurement value that is not offset by Adder and Multiplier.
Top
Methods
 NameDescription
Public methodStatic memberAverageAngleValueFilter Calculates an average of the specified sequence of IMeasurement phase angle values.
Public methodStatic memberAverageValueFilter Calculates an average of the specified sequence of IMeasurement values.
Public methodStatic memberClone(IMeasurement) Creates a copy of the specified measurement.
Public methodStatic memberClone(IMeasurement, Ticks) Creates a copy of the specified measurement using a new timestamp.
Public methodStatic memberClone(IMeasurement, Double, Ticks) Creates a copy of the specified measurement using a new value and timestamp.
Public methodStatic memberClone(IMeasurement, Double, Ticks, MeasurementStateFlags, Boolean) Creates a copy of the specified measurement using a new value, timestamp and state flags.
Public methodCompareTo(ITimeSeriesValue) Compares the Measurement with an ITimeSeriesValue.
Public methodCompareTo(Object) Compares the Measurement with the specified Object.
Public methodEquals(ITimeSeriesValue) Determines whether the specified ITimeSeriesValue is equal to the current Measurement.
Public methodEquals(Object) Determines whether the specified Object is equal to the current Measurement.
(Overrides ObjectEquals(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 methodGetHashCode Serves as a hash function for the current Measurement.
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberMajorityValueFilter Returns the majority value of the specified sequence of IMeasurement values.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString Returns a String that represents the current Measurement.
(Overrides ObjectToString)
Public methodStatic memberToString(IMeasurement, Boolean) Returns a String that represents the specified IMeasurement.
Top
Operators
 NameDescription
Public operatorStatic memberEquality(Measurement, Measurement) Compares two Measurement values for equality.
Public operatorStatic memberGreaterThan(Measurement, Measurement) Returns true if left Measurement value is greater than right Measurement value.
Public operatorStatic memberGreaterThanOrEqual(Measurement, Measurement) Returns true if left Measurement value is greater than or equal to right Measurement value.
Public operatorStatic memberInequality(Measurement, Measurement) Compares two Measurement values for inequality.
Public operatorStatic memberLessThan(Measurement, Measurement) Returns true if left Measurement value is less than right Measurement value.
Public operatorStatic memberLessThanOrEqual(Measurement, Measurement) Returns true if left Measurement value is less than or equal to right Measurement value.
Top
Fields
 NameDescription
Public fieldStatic memberUndefined Represents an undefined measurement.
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)
Public Extension MethodGetSignalType Gets a unique (run-time only) signal type ID for the given measurement useful for sorting.
(Defined by IMeasurementExtensions)
Public Extension MethodHistorianQuality Gets a Quality value from a IMeasurement value.
(Defined by QualityExtensions)
Public Extension MethodIsCalculated Returns true if CalculatedValue is set.
(Defined by IMeasurementExtensions)
Public Extension MethodIsDiscarded Returns true if DiscardedValue is set.
(Defined by IMeasurementExtensions)
Public Extension MethodRuntimeSignalID Returns the measurement ID if defined, otherwise the run-time signal ID associated with the measurement key.
(Defined by IMeasurementExtensions)
Public Extension MethodSetAdder Sets the adder (i.e., "b" of y = mx + b) for a IMeasurement.
(Defined by IMeasurementExtensions)
Public Extension MethodSetKey Sets the associated MeasurementKey for a IMeasurement.
(Defined by IMeasurementExtensions)
Public Extension MethodSetMultiplier Sets the multiplier (i.e., "m" of y = mx + b) for a IMeasurement.
(Defined by IMeasurementExtensions)
Public Extension MethodSetTagName Sets the tag name for a IMeasurement.
(Defined by IMeasurementExtensions)
Public Extension MethodTimestampQualityIsGood Returns true if BadTime is not set.
(Defined by IMeasurementExtensions)
Public Extension MethodTimestampQualityIsSuspect Returns true if SuspectTime is set.
(Defined by IMeasurementExtensions)
Public Extension MethodValueQualityIsGood Returns true if BadData is not set.
(Defined by IMeasurementExtensions)
Top
See Also