Click or drag to resize

SerializableMeasurement Class

Represents a IMeasurement that can be serialized.
Inheritance Hierarchy
SystemObject
  GSF.TimeSeriesMeasurement
    GSF.TimeSeries.TransportSerializableMeasurement

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

The SerializableMeasurement type exposes the following members.

Constructors
 NameDescription
Public methodSerializableMeasurement(Encoding) Creates a new SerializableMeasurement.
Public methodSerializableMeasurement(IMeasurement, Encoding) Creates a new SerializableMeasurement from an existing IMeasurement value.
Top
Properties
 NameDescription
Public propertyAdder Gets an offset to add to the measurement value. This defaults to 0.0.
(Inherited from Measurement)
Public propertyAdjustedValue Gets the adjusted numeric value of this measurement, taking into account the specified Adder and Multiplier offsets.
(Inherited from Measurement)
Public propertyBinaryLength Gets the length of the SerializableMeasurement.
Public propertyCreatedTimestamp Gets timestamp, in ticks, of when this Measurement was created.
(Inherited from Measurement)
Public propertyID Gets the Guid based signal ID of the Measurement implementation.
(Inherited from Measurement)
Public propertyKey Gets the primary MeasurementKey of this Measurement implementation.
(Inherited from Measurement)
Public propertyLifespan Gets the life-span of this Measurement since its creation.
(Inherited from Measurement)
Public propertyMeasurementValueFilter Gets function used to apply a down-sampling filter over a sequence of Measurement values.
(Inherited from Measurement)
Public propertyMetadata Gets or sets associated metadata values for the Measurement implementation.
(Inherited from Measurement)
Public propertyMultiplier Gets a multiplicative offset to apply to the measurement value. This defaults to 1.0.
(Inherited from Measurement)
Public propertyStateFlags Gets or sets MeasurementStateFlags associated with this Measurement.
(Inherited from Measurement)
Public propertyTagName Gets the text based tag name of this Measurement implementation.
(Inherited from Measurement)
Public propertyTimestamp Gets or sets exact timestamp, in ticks, of the data represented by this Measurement.
(Inherited from Measurement)
Public propertyValue Gets or sets the raw measurement value that is not offset by Adder and Multiplier.
(Inherited from Measurement)
Top
Methods
 NameDescription
Public methodCompareTo(ITimeSeriesValue) Compares the Measurement with an ITimeSeriesValue.
(Inherited from Measurement)
Public methodCompareTo(Object) Compares the Measurement with the specified Object.
(Inherited from Measurement)
Public methodEquals(ITimeSeriesValue) Determines whether the specified ITimeSeriesValue is equal to the current Measurement.
(Inherited from Measurement)
Public methodEquals(Object) Determines whether the specified Object is equal to the current Measurement.
(Inherited from Measurement)
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 methodGenerateBinaryImage Generates binary image of the SerializableMeasurement and copies it into the given buffer, for BinaryLength bytes.
Public methodGetHashCode Serves as a hash function for the current Measurement.
(Inherited from Measurement)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodParseBinaryImage Initializes SerializableMeasurement from the specified binary image.
Public methodToString Returns a String that represents the current Measurement.
(Inherited from Measurement)
Top
Fields
 NameDescription
Public fieldStatic memberFixedLength Fixed byte length of a SerializableMeasurement.
Top
Extension Methods
 NameDescription
Public Extension MethodBinaryImage Returns a binary image of an object that implements ISupportBinaryImage.
(Defined by ISupportBinaryImageExtensions)
Public Extension MethodCopyBinaryImageToStream Copies binary image of object that implements ISupportBinaryImage to a Stream.
(Defined by ISupportBinaryImageExtensions)
Public Extension MethodCopyImage This is a common optimized block copy function for any kind of data.
(Defined by Common)
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 MethodParseBinaryImageFromStream Parses binary image of object that implements ISupportBinaryImage from a Stream.
(Defined by ISupportBinaryImageExtensions)
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
Remarks
This measurement implementation is serialized through ISupportBinaryImage to allow complete control of binary format. All measurement properties are serialized at their full resolution and no attempt is made to optimize the binary image for purposes of size reduction.
See Also