using DTS.Common.Base.Classes; using DTS.Common.Converters; using System.ComponentModel; namespace DTS.Common.Interface.TestSetups { [TypeConverter(typeof(EnumDescriptionTypeConverter))] public enum Operations { [DescriptionResource("CalculatedChannel_Sum")] SUM = 1, [DescriptionResource("CalculatedChannel_Average")] AVERAGE = 2, [DescriptionResource("CalculatedChannel_IRTRACC3D_Thorax")] IRTRACC3D = 3, [DescriptionResource("CalculatedChannel_IRTRACC3D_Abdomen")] IRTRACC3D_ABDOMEN = 4, [DescriptionResource("CalculatedChannel_IRTRACC3D_LowerThorax")] IRTRACC3D_LOWERTHORAX = 5, [DescriptionResource("CalculatedChannel_Resultant")] Resultant = 6, [DescriptionResource("HIC")] HIC = 7 } /// /// describes Calculated Channel record in the db /// public interface ICalculatedChannelRecord { string Name { get; set; } string TestSetupName { get; set; } /// /// Database Id for record /// int Id { get; set; } /// /// operation to apply to input channels /// Operations Operation { get; set; } /// /// Single code (ISO or user) to associate with calculated channel /// string CalculatedValueCode { get; set; } /// /// CSV separated list of channel ids that are inputs for the calculation /// string [] InputChannelIds { get; set; } /// /// CFC to apply to input channels prior to calculation /// string CFCForInputChannels { get; set; } /// /// CFC to apply to output of calculation /// string ChannelFilterClassForOutput { get; set; } /// /// Database Id for test setup record /// int TestSetupId { get; set; } /// /// Whether channel can be viewed in realtime or not /// bool ViewInRealtime { get; set; } /// /// Clip length to apply to calculation if relevant /// some calculations are a max over an clip for example /// int ClipLength { get; set; } } }