//****************************************************************************************************** // MetadataRecordAlarmFlags.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: // ---------------------------------------------------------------------------------------------------- // 02/22/2007 - Pinal C. Patel // Generated original version of code based on DatAWare system specifications by Brian B. Fox, GSF. // 04/20/2009 - Pinal C. Patel // Converted to C#. // 09/15/2009 - Stephen C. Wills // Added new header and license agreement. // 10/11/2010 - Mihir Brahmbhatt // Updated header and license agreement. // 12/14/2012 - Starlynn Danyelle Gilliam // Modified Header. // //****************************************************************************************************** namespace GSF.Historian.Files { /// /// Defines which data should trigger an alarm notification. /// /// public class MetadataRecordAlarmFlags { #region [ Members ] // Fields private int m_value; #endregion #region [ Properties ] /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool Unknown { get { return m_value.CheckBits(Bits.Bit00); } set { m_value = value ? m_value.SetBits(Bits.Bit00) : m_value.ClearBits(Bits.Bit00); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool DeletedFromProcessing { get { return m_value.CheckBits(Bits.Bit01); } set { m_value = value ? m_value.SetBits(Bits.Bit01) : m_value.ClearBits(Bits.Bit01); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool CouldNotCalculate { get { return m_value.CheckBits(Bits.Bit02); } set { m_value = value ? m_value.SetBits(Bits.Bit02) : m_value.ClearBits(Bits.Bit02); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool FrontEndHardwareError { get { return m_value.CheckBits(Bits.Bit03); } set { m_value = value ? m_value.SetBits(Bits.Bit03) : m_value.ClearBits(Bits.Bit03); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool SensorReadError { get { return m_value.CheckBits(Bits.Bit04); } set { m_value = value ? m_value.SetBits(Bits.Bit04) : m_value.ClearBits(Bits.Bit04); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool OpenThermocouple { get { return m_value.CheckBits(Bits.Bit05); } set { m_value = value ? m_value.SetBits(Bits.Bit05) : m_value.ClearBits(Bits.Bit05); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool InputCountsOutOfSensorRange { get { return m_value.CheckBits(Bits.Bit06); } set { m_value = value ? m_value.SetBits(Bits.Bit06) : m_value.ClearBits(Bits.Bit06); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool UnreasonableHigh { get { return m_value.CheckBits(Bits.Bit07); } set { m_value = value ? m_value.SetBits(Bits.Bit07) : m_value.ClearBits(Bits.Bit07); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool UnreasonableLow { get { return m_value.CheckBits(Bits.Bit08); } set { m_value = value ? m_value.SetBits(Bits.Bit08) : m_value.ClearBits(Bits.Bit08); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool Old { get { return m_value.CheckBits(Bits.Bit09); } set { m_value = value ? m_value.SetBits(Bits.Bit09) : m_value.ClearBits(Bits.Bit09); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool SuspectValueAboveHiHiLimit { get { return m_value.CheckBits(Bits.Bit10); } set { m_value = value ? m_value.SetBits(Bits.Bit10) : m_value.ClearBits(Bits.Bit10); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool SuspectValueBelowLoLoLimit { get { return m_value.CheckBits(Bits.Bit11); } set { m_value = value ? m_value.SetBits(Bits.Bit11) : m_value.ClearBits(Bits.Bit11); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool SuspectValueAboveHiLimit { get { return m_value.CheckBits(Bits.Bit12); } set { m_value = value ? m_value.SetBits(Bits.Bit12) : m_value.ClearBits(Bits.Bit12); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool SuspectValueBelowLoLimit { get { return m_value.CheckBits(Bits.Bit13); } set { m_value = value ? m_value.SetBits(Bits.Bit13) : m_value.ClearBits(Bits.Bit13); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool SuspectData { get { return m_value.CheckBits(Bits.Bit14); } set { m_value = value ? m_value.SetBits(Bits.Bit14) : m_value.ClearBits(Bits.Bit14); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool DigitalSuspectAlarm { get { return m_value.CheckBits(Bits.Bit15); } set { m_value = value ? m_value.SetBits(Bits.Bit15) : m_value.ClearBits(Bits.Bit15); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool InsertedValueAboveHiHiLimit { get { return m_value.CheckBits(Bits.Bit16); } set { m_value = value ? m_value.SetBits(Bits.Bit16) : m_value.ClearBits(Bits.Bit16); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool InsertedValueBelowLoLoLimit { get { return m_value.CheckBits(Bits.Bit17); } set { m_value = value ? m_value.SetBits(Bits.Bit17) : m_value.ClearBits(Bits.Bit17); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool InsertedValueAboveHiLimit { get { return m_value.CheckBits(Bits.Bit18); } set { m_value = value ? m_value.SetBits(Bits.Bit18) : m_value.ClearBits(Bits.Bit18); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool InsertedValueBelowLoLimit { get { return m_value.CheckBits(Bits.Bit19); } set { m_value = value ? m_value.SetBits(Bits.Bit19) : m_value.ClearBits(Bits.Bit19); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool InsertedValue { get { return m_value.CheckBits(Bits.Bit20); } set { m_value = value ? m_value.SetBits(Bits.Bit20) : m_value.ClearBits(Bits.Bit20); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool DigitalInsertedStatusInAlarm { get { return m_value.CheckBits(Bits.Bit21); } set { m_value = value ? m_value.SetBits(Bits.Bit21) : m_value.ClearBits(Bits.Bit21); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool LogicalAlarm { get { return m_value.CheckBits(Bits.Bit22); } set { m_value = value ? m_value.SetBits(Bits.Bit22) : m_value.ClearBits(Bits.Bit22); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool ValueAboveHiHiAlarm { get { return m_value.CheckBits(Bits.Bit23); } set { m_value = value ? m_value.SetBits(Bits.Bit23) : m_value.ClearBits(Bits.Bit23); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool ValueBelowLoLoAlarm { get { return m_value.CheckBits(Bits.Bit24); } set { m_value = value ? m_value.SetBits(Bits.Bit24) : m_value.ClearBits(Bits.Bit24); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool ValueAboveHiAlarm { get { return m_value.CheckBits(Bits.Bit25); } set { m_value = value ? m_value.SetBits(Bits.Bit25) : m_value.ClearBits(Bits.Bit25); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool ValueBelowLoAlarm { get { return m_value.CheckBits(Bits.Bit26); } set { m_value = value ? m_value.SetBits(Bits.Bit26) : m_value.ClearBits(Bits.Bit26); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool DeletedFromAlarmChecks { get { return m_value.CheckBits(Bits.Bit27); } set { m_value = value ? m_value.SetBits(Bits.Bit27) : m_value.ClearBits(Bits.Bit27); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool InhibitedByCutoutPoint { get { return m_value.CheckBits(Bits.Bit28); } set { m_value = value ? m_value.SetBits(Bits.Bit28) : m_value.ClearBits(Bits.Bit28); } } /// /// Gets or sets a boolean value that indicates whether a data of should trigger an alarm notification. /// public bool Good { get { return m_value.CheckBits(Bits.Bit29); } set { m_value = value ? m_value.SetBits(Bits.Bit29) : m_value.ClearBits(Bits.Bit29); } } /// /// Gets or sets the 32-bit integer value used for defining which data should trigger an alarm notification. /// public int Value { get { return m_value; } set { m_value = value; } } #endregion } }