/* * DTS.Slice.Control.Event.Module.AnalogInputChannel.ReviewableShuntDeflectionPercentageAttribute.cs * * Copyright © 2009 * Diversified Technical Systems, Inc. * All Rights Reserved */ using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DTS.Slice.Control { // *** see DTS.Slice.Control.Event.cs *** public partial class Event { // *** see DTS.Slice.Control.Event.Module.cs *** public partial class Module { // *** see DTS.Slice.Control.Event.Module.AnalogInputChannel.cs *** public partial class AnalogInputChannel { /// /// A reviewable shunt deflection attribute attached to a specific channel. /// public class ReviewableShuntDeflectionPercentageAttribute : Slice.Control.Event.Module.Channel.ReviewableAttribute { /// /// Initialize an instance of this class. /// /// /// /// The to which this attribute is attached. /// /// public ReviewableShuntDeflectionPercentageAttribute(Event.Module.Channel channel) : base("Shunt Error (%)", delegate { return (100.0 * ((channel as DTS.DAS.Concepts.DAS.Channel.IShuntAware).MeasuredShuntDeflectionMv - (channel as DTS.DAS.Concepts.DAS.Channel.IShuntAware).TargetShuntDeflectionMv) / (channel as DTS.DAS.Concepts.DAS.Channel.IShuntAware).TargetShuntDeflectionMv).ToString("F1"); }) { } } /// /// A reviewable shunt deflection attribute attached to a specific channel. /// public class ReviewableCalSignalPercentageAttribute : Slice.Control.Event.Module.Channel.ReviewableAttribute { /// /// Initialize an instance of this class. /// /// /// /// The to which this attribute is attached. /// /// public ReviewableCalSignalPercentageAttribute(Event.Module.Channel channel) : base("Calibration Signal Error (%)", delegate { return (100.0 * ((channel as DTS.DAS.Concepts.DAS.Channel.ICalSignalAware).MeasuredCalSignalMv - (channel as DTS.DAS.Concepts.DAS.Channel.ICalSignalAware).TargetCalSignalMv) / (channel as DTS.DAS.Concepts.DAS.Channel.ICalSignalAware).TargetCalSignalMv).ToString("F1"); }) { } } } // *** end Channel *** } // *** end Module *** } // *** end Event *** }