Click or drag to resize

CompactMeasurement Class

Represents a IMeasurement that can be serialized with minimal size.
Inheritance Hierarchy
SystemObject
  GSF.TimeSeriesMeasurement
    GSF.TimeSeries.TransportCompactMeasurement

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

The CompactMeasurement type exposes the following members.

Constructors
 NameDescription
Public methodCompactMeasurement(SignalIndexCache, Boolean, Int64, Int32, Boolean) Creates a new CompactMeasurement.
Public methodCompactMeasurement(IMeasurement, SignalIndexCache, Boolean, Int64, Int32, Boolean) Creates a new CompactMeasurement 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 CompactMeasurement.
Public propertyCompactStateFlags Gets or sets byte level compact state flags with encoded time index and base time offset bits.
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 propertyIncludeTime Gets flag that determines if time is serialized into measurement binary image.
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 propertyRuntimeID Gets or sets the 2-byte run-time signal index for this 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 propertyTimestampC2 Gets offset compressed millisecond-resolution 2-byte timestamp.
Public propertyTimestampC4 Gets offset compressed tick-resolution 4-byte timestamp.
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 CompactMeasurement 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 CompactMeasurement 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 CompactMeasurement.
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. Only critical measurements properties are serialized and every attempt is made to optimize the binary image for purposes of size reduction.
See Also