using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DTS.SensorDB { /// /// stolen from HLAPI /// used sparsely ... do not expect most fields to be filled out as we use very few fields from it ... /// public class TSFSystemDescription { private int _version; public int Version { get { return _version; } set { _version = value; } } private int _systemState; public int SystemState { get { return _systemState; } set { _systemState = value; } } private int _source; public int Source { get { return _source; } set { _source = value; } } private ulong _crc32; public ulong CRC32 { get { return _crc32; } set { _crc32 = value; } } // The following fields describe the static hardware system /// /// Are the HW* variables valid? /// private bool _hardwareDescriptionValid = false; public bool HardwareDescriptionValid { get { return _hardwareDescriptionValid; } set { _hardwareDescriptionValid = value; } } /// /// How many SIM's in the whole system? /// private int _hwSIMCount; public int HWSIMCount { get { return _hwSIMCount; } set { _hwSIMCount = value; } } /// /// How many TOM's in the whole system? /// private int _hwTOMCount; public int HWTOMCount { get { return _hwTOMCount; } set { _hwTOMCount = value; } } /// /// How many G5's in the whole system? /// private int _hwG5Count; public int HWG5Count { get { return _hwG5Count; } set { _hwG5Count = value; } } /// /// How many analog channels in the whole system? /// private int _hwAnalogChannelCount; public int HWAnalogChannelCount { get { return _hwAnalogChannelCount; } set { _hwAnalogChannelCount = value; } } /// /// How many squib channels in the whole system? /// private int _hwSquibChannelCount; public int HWSquibChannelCount { get { return _hwSquibChannelCount; } set { _hwSquibChannelCount = value; } } /// /// How many digital output channels in the whole system? /// private int _hwDigitalOutputChannelCount; public int HWDigitalOutputChannelCount { get { return _hwDigitalOutputChannelCount; } set { _hwDigitalOutputChannelCount = value; } } /// /// How many digital input channels in the whole system? /// private int _hwDigitalInputChannelCount; public int HWDigitalInputChannelCount { get { return _hwDigitalInputChannelCount; } set { _hwDigitalInputChannelCount = value; } } /// /// Number of elements in HWRack array? /// public int HWRackCount { get { return HWRack.Length; } } /// /// List of racks and their children /// List _hwRack = new List(); public TSFRackDescription[] HWRack { get { return _hwRack.ToArray(); } set { _hwRack = new List(value); } } //The following fields describe the test system parameters private bool _testDescriptionValid = false; public bool TestDescriptionValid { get { return _testDescriptionValid; } set { _testDescriptionValid = value; } } private double _testSampleRate; public double TestSampleRate { get { return _testSampleRate; } set { _testSampleRate = value; } } private double _testPreTriggerSeconds; public double TestPreTriggerSeconds { get { return _testPreTriggerSeconds; } set { _testPreTriggerSeconds = value; } } private double _testPostTriggerSeconds; public double TestPostTriggerSeconds { get { return _testPostTriggerSeconds; } set { _testPostTriggerSeconds = value; } } private string _testConfigurationId; public string TestConfigurationId { get { return _testConfigurationId; } set { _testConfigurationId = value; } } private char _testArmMode; public char TestArmMode { get { return _testArmMode; } set { _testArmMode = value; } } private double _testAdjustibleAAFilter; public double TestAdjustibleAAFilter { get { return _testAdjustibleAAFilter; } set { _testAdjustibleAAFilter = value; } } private double _testCapacitorDischargeFrequency; public double TestCapacitorDischargeFrequency { get { return _testCapacitorDischargeFrequency; } set { _testCapacitorDischargeFrequency = value; } } private DateTime _testModifiedDateTime; public DateTime TestModifiedDateTime { get { return _testModifiedDateTime; } set { _testModifiedDateTime = value; } } private double _testTZeroOffset = 0D; public double TestTZeroOffset { get { return _testTZeroOffset; } set { _testTZeroOffset = value; } } private int _testLTOffset = 0; public int TestLTOffset { get { return _testLTOffset; } set { _testLTOffset = value; } } //The following fields describe the current state of the system private bool _bSystemInfoValid = false; public bool SystemInfoValid { get { return _bSystemInfoValid; } set { _bSystemInfoValid = value; } } private int _sysArmStatus; public int SysArmStatus { get { return _sysArmStatus; } set { _sysArmStatus = value; } } private bool _sysLowPowerDetected; public bool SysLowPowerDetected { get { return _sysLowPowerDetected; } set { _sysLowPowerDetected = value; } } private bool _sysTriggerFaultDetected; public bool SysTriggerFaultDetected { get { return _sysTriggerFaultDetected; } set { _sysTriggerFaultDetected = value; } } private bool _sysStartRecordDetected; public bool SysStartRecordDected { get { return _sysStartRecordDetected; } set { _sysStartRecordDetected = value; } } } }