Click or drag to resize

ChannelFrameBaseT Class

Represents the protocol independent common implementation of any frame of data that can be sent or received.
Inheritance Hierarchy

Namespace: GSF.PhasorProtocols
Assembly: GSF.PhasorProtocols (in GSF.PhasorProtocols.dll) Version: 2.4.218-beta
Syntax
View Source

Type Parameters

T
Specific IChannelCell type that the ChannelFrameBaseT contains.

The ChannelFrameBaseT type exposes the following members.

Constructors
 NameDescription
Protected methodChannelFrameBaseT(SerializationInfo, StreamingContext) Creates a new ChannelFrameBaseT from serialization parameters.
Protected methodChannelFrameBaseT(UInt16, IChannelCellCollectionT, Ticks) Creates a new ChannelFrameBaseT from specified parameters.
Top
Properties
 NameDescription
Public propertyAllowQueuedPublication Gets flag that determines if frame image can be queued for publication or should be processed immediately.
Public propertyAttributesDictionaryTKey, TValue of string based property names and values for the ChannelFrameBaseT object.
(Overrides ChannelBaseAttributes)
Public propertyBinaryImage Gets the binary image of this ChannelFrameBaseT.
(Overrides ChannelBaseBinaryImage)
Public propertyBinaryLength Gets the length of the BinaryImage.
(Overrides BinaryImageBaseBinaryLength)
Protected propertyBodyImage Gets the binary body image of this ChannelFrameBaseT.
(Overrides ChannelBaseBodyImage)
Protected propertyBodyLength Gets the length of the BodyImage.
(Overrides BinaryImageBaseBodyLength)
Public propertyCells Gets the strongly-typed reference to the collection of cells for this ChannelFrameBaseT.
Public propertyChecksum Gets calculated checksum for this ChannelFrameBaseT.
Public propertyCreatedTimestamp Gets timestamp, in ticks, of when this ChannelFrameBaseT was created.
Protected propertyFooterImage Gets the binary footer image of the BinaryImageBase object.
(Inherited from ChannelBase)
Protected propertyFooterLength Gets the length of the footer portion of the BinaryImageBase object.
(Inherited from BinaryImageBase)
Public propertyFrameType Gets the FundamentalFrameType for this ChannelFrameBaseT.
Protected propertyHeaderImage Gets the binary header image of the ChannelBase object.
(Inherited from ChannelBase)
Protected propertyHeaderLength Gets the length of the header portion of the BinaryImageBase object.
(Inherited from BinaryImageBase)
Public propertyIDCode Gets or sets the ID code of this ChannelFrameBaseT.
Public propertyLastSortedMeasurement Gets or sets reference to last IMeasurement that was sorted into this ChannelFrameBaseT.
Public propertyLifespan Gets the life-span of this ChannelFrameBaseT since its creation.
Public propertyMeasurements Keyed measurements in this ChannelFrameBaseT.
Protected propertyParsedBinaryLength Gets the parsed binary length derived from the parsing state, if any.
Public propertyPublished Gets or sets published state of this ChannelFrameBaseT.
Public propertySortedMeasurements Gets or sets total number of measurements that have been sorted into this ChannelFrameBaseT.
Public propertySource Gets or sets the data source identifier for this ChannelFrameBaseT.
Public propertyState Gets or sets the parsing state for the this ChannelFrameBaseT.
Public propertyTag Gets or sets a user definable reference to an object associated with this ChannelBase object.
(Inherited from ChannelBase)
Public propertyTimestamp Gets or sets exact timestamp, in ticks, of the data represented by this ChannelFrameBaseT.
Public propertyTimeTag Gets UNIX based time representation of the ticks of this ChannelFrameBaseT.
Public propertyTrustHeaderLength Gets or sets flag that determines if header lengths should be trusted over parsed byte count.
Public propertyValidateCheckSum Gets or sets flag that determines if frame's check-sum should be validated - this should normally be left as true.
Top
Methods
 NameDescription
Protected methodAppendChecksum Appends checksum onto buffer starting at startIndex.
Protected methodCalculateChecksum Calculates checksum of given buffer.
Protected methodChecksumIsValid Determines if checksum in the buffer is valid.
Public methodCompareTo(IFrame) Compares the ChannelFrameBaseT with an IFrame.
Public methodCompareTo(Object) Compares the ChannelFrameBaseT with the specified Object.
Public methodEquals(IFrame) Determines whether the specified IFrame is equal to the current ChannelFrameBaseT.
Public methodEquals(Object) Determines whether the specified Object is equal to the current ChannelFrameBaseT.
(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 methodGenerateBinaryImage Generates binary image of the object and copies it into the given buffer, for BinaryLength bytes.
(Inherited from ChannelBase)
Protected methodGenerateBodyImage Generates the binary body image and copies it into the given buffer, for BodyLength bytes.
(Inherited from BinaryImageBase)
Protected methodGenerateFooterImage Generates the binary footer image and copies it into the given buffer, for FooterLength bytes.
(Inherited from BinaryImageBase)
Protected methodGenerateHeaderImage Generates the binary header image and copies it into the given buffer, for HeaderLength bytes.
(Inherited from BinaryImageBase)
Public methodGetHashCode Returns the hash code for this instance.
(Overrides ObjectGetHashCode)
Public methodGetObjectData Populates a SerializationInfo with the data needed to serialize the target object.
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 Parses the binary image.
(Overrides BinaryImageBaseParseBinaryImage(Byte, Int32, Int32))
Protected methodParseBodyImage Parses the binary body image.
(Overrides BinaryImageBaseParseBodyImage(Byte, Int32, Int32))
Protected methodParseFooterImage Parses the binary footer image.
(Inherited from BinaryImageBase)
Protected methodParseHeaderImage Parses the binary header image.
(Inherited from BinaryImageBase)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
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 MethodParseBinaryImageFromStream Parses binary image of object that implements ISupportBinaryImage from a Stream.
(Defined by ISupportBinaryImageExtensions)
Top
Remarks

This phasor protocol implementation defines a "frame" as a collection of cells (logical units of data). For example, a DataCellBase could be defined as a PMU within a frame of data, a DataFrameBase (derived from ChannelFrameBaseT), that contains multiple PMU's coming from a PDC.

This class implements the IFrame interface so it can be cooperatively integrated into measurement concentration. For more information see the ConcentratorBase class.

See Also