Files
DP44/DataPRO/SensorDB/TSF/TSFSystemDescription.cs

138 lines
6.2 KiB
C#
Raw Normal View History

2026-04-17 14:55:32 -04:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DTS.SensorDB
{
/// <summary>
/// stolen from HLAPI
/// used sparsely ... do not expect most fields to be filled out as we use very few fields from it ...
/// </summary>
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
/// <summary>
/// Are the HW* variables valid?
/// </summary>
private bool _hardwareDescriptionValid = false;
public bool HardwareDescriptionValid { get { return _hardwareDescriptionValid; } set { _hardwareDescriptionValid = value; } }
/// <summary>
/// How many SIM's in the whole system?
/// </summary>
private int _hwSIMCount;
public int HWSIMCount { get { return _hwSIMCount; } set { _hwSIMCount = value; } }
/// <summary>
/// How many TOM's in the whole system?
/// </summary>
private int _hwTOMCount;
public int HWTOMCount { get { return _hwTOMCount; } set { _hwTOMCount = value; } }
/// <summary>
/// How many G5's in the whole system?
/// </summary>
private int _hwG5Count;
public int HWG5Count { get { return _hwG5Count; } set { _hwG5Count = value; } }
/// <summary>
/// How many analog channels in the whole system?
/// </summary>
private int _hwAnalogChannelCount;
public int HWAnalogChannelCount { get { return _hwAnalogChannelCount; } set { _hwAnalogChannelCount = value; } }
/// <summary>
/// How many squib channels in the whole system?
/// </summary>
private int _hwSquibChannelCount;
public int HWSquibChannelCount { get { return _hwSquibChannelCount; } set { _hwSquibChannelCount = value; } }
/// <summary>
/// How many digital output channels in the whole system?
/// </summary>
private int _hwDigitalOutputChannelCount;
public int HWDigitalOutputChannelCount { get { return _hwDigitalOutputChannelCount; } set { _hwDigitalOutputChannelCount = value; } }
/// <summary>
/// How many digital input channels in the whole system?
/// </summary>
private int _hwDigitalInputChannelCount;
public int HWDigitalInputChannelCount { get { return _hwDigitalInputChannelCount; } set { _hwDigitalInputChannelCount = value; } }
/// <summary>
/// Number of elements in HWRack array?
/// </summary>
public int HWRackCount { get { return HWRack.Length; } }
/// <summary>
/// List of racks and their children
/// </summary>
List<TSFRackDescription> _hwRack = new List<TSFRackDescription>();
public TSFRackDescription[] HWRack { get { return _hwRack.ToArray(); } set { _hwRack = new List<TSFRackDescription>(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; } }
}
}