71 lines
2.4 KiB
C#
71 lines
2.4 KiB
C#
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
|
|
}
|
|
/// <summary>
|
|
/// describes Calculated Channel record in the db
|
|
/// </summary>
|
|
public interface ICalculatedChannelRecord
|
|
{
|
|
string Name { get; set; }
|
|
string TestSetupName { get; set; }
|
|
/// <summary>
|
|
/// Database Id for record
|
|
/// </summary>
|
|
int Id { get; set; }
|
|
/// <summary>
|
|
/// operation to apply to input channels
|
|
/// </summary>
|
|
Operations Operation { get; set; }
|
|
/// <summary>
|
|
/// Single code (ISO or user) to associate with calculated channel
|
|
/// </summary>
|
|
string CalculatedValueCode { get; set; }
|
|
/// <summary>
|
|
/// CSV separated list of channel ids that are inputs for the calculation
|
|
/// </summary>
|
|
string [] InputChannelIds { get; set; }
|
|
/// <summary>
|
|
/// CFC to apply to input channels prior to calculation
|
|
/// </summary>
|
|
string CFCForInputChannels { get; set; }
|
|
/// <summary>
|
|
/// CFC to apply to output of calculation
|
|
/// </summary>
|
|
string ChannelFilterClassForOutput { get; set; }
|
|
/// <summary>
|
|
/// Database Id for test setup record
|
|
/// </summary>
|
|
int TestSetupId { get; set; }
|
|
/// <summary>
|
|
/// Whether channel can be viewed in realtime or not
|
|
/// </summary>
|
|
bool ViewInRealtime { get; set; }
|
|
/// <summary>
|
|
/// Clip length to apply to calculation if relevant
|
|
/// some calculations are a max over an clip for example
|
|
/// </summary>
|
|
int ClipLength { get; set; }
|
|
}
|
|
}
|