//****************************************************************************************************** // IChannelFrame.cs - Gbtc // // Copyright © 2012, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // the NOTICE file distributed with this work for additional information regarding copyright ownership. // The GPA licenses this file to you under the MIT License (MIT), the "License"; you may // not use this file except in compliance with the License. You may obtain a copy of the License at: // // http://www.opensource.org/licenses/MIT // // Unless agreed to in writing, the subject software distributed under the License is distributed on an // "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the // License for the specific language governing permissions and limitations. // // Code Modification History: // ---------------------------------------------------------------------------------------------------- // 01/14/2005 - J. Ritchie Carroll // Generated original version of source code. // 09/15/2009 - Stephen C. Wills // Added new header and license agreement. // 10/5/2012 - Gavin E. Holden // Added new header and license agreement. // 12/17/2012 - Starlynn Danyelle Gilliam // Modified Header. // //****************************************************************************************************** using System; using System.Runtime.Serialization; using GSF.TimeSeries; namespace GSF.PhasorProtocols { #region [ Enumerations ] /// /// Fundamental frame types enumeration. /// [Serializable] public enum FundamentalFrameType { /// /// Configuration frame. /// ConfigurationFrame, /// /// Data frame. /// DataFrame, /// /// Header frame. /// HeaderFrame, /// /// Command frame. /// CommandFrame, /// /// Undetermined frame type. /// Undetermined } #endregion /// /// Represents a protocol independent interface representation of any kind of frame of data that contains /// a collection of objects. /// /// /// /// The phasor protocols library defines a "frame" as a collection of cells (logical units of data). /// For example, a would be defined as a PMU within a frame of data, a /// (derived from ), that contains multiple PMU's coming from a PDC. /// /// /// This interface inherits so that classes implementing this interface can be cooperatively /// integrated into measurement concentration (see ). /// /// public interface IChannelFrame : IChannel, IFrame, ISerializable { // We keep this IChannelFrame as a simple non-generic interface to prevent complex circular type definitions // that would be caused by a strongly-typed "parent" reference in IChannelCell. The parent reference is // extremely useful in the actual protocol implementations since many of the properties of a cell and a // frame may be shared. The strongly-typed generic version of the IChannelFrame interface is below. /// /// Gets the for this . /// FundamentalFrameType FrameType { get; } /// /// Gets the simple reference to the collection of cells for this . /// object Cells { get; } /// /// Gets or sets the ID code of this . /// ushort IDCode { get; set; } /// /// Gets UNIX based time representation of the ticks of this . /// UnixTimeTag TimeTag { get; } } /// /// Represents a strongly-typed protocol independent interface representation of any kind of frame of data that /// contains a collection of objects. /// /// /// This interface inherits so that classes implementing this interface can be cooperatively /// integrated into measurement concentration (see ). /// /// Specific type that the contains. public interface IChannelFrame : IChannelFrame where T : IChannelCell { /// /// Gets the strongly-typed reference to the collection of cells for this . /// new IChannelCellCollection Cells { get; } /// /// Gets or sets the parsing state for this . /// new IChannelFrameParsingState State { get; set; } } }