This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
namespace DTS.Common.Enums.GroupTemplates
{
public enum GroupTemplateChannelFields
{
Required,
Name,
ISOCode,
Custom,
DisplayOrder
}
}

View File

@@ -0,0 +1,18 @@
namespace DTS.Common.Enums
{
/// <summary>
/// Enum representing the TabControl operations type.
/// </summary>
public enum TabControlOperation
{
/// <summary>
/// The item has been added to the TabControl.
/// </summary>
AddedItem,
/// <summary>
/// The item has been removed from the TabControl.
/// </summary>
RemovedItem
}
}

View File

@@ -0,0 +1,6 @@
using DTS.Common.Base;
namespace DTS.Common.Interface
{
public interface ITestModuleView : IBaseView { }
}

View File

@@ -0,0 +1,84 @@
using DTS.Common.Enums.Hardware;
using System;
namespace DTS.Common.Interface.DataRecorders
{
/// <summary>
/// represents hardware in TTS import
/// </summary>
public interface IDASHardware
{
int ProtocolVersion { get; }
/// <summary>
/// returns true if the hardware is standin for a real das, but not a physical das in itself
/// </summary>
/// <returns></returns>
bool IsStandIn();
/// <summary>
/// whether hardware supports and is using first use date
/// 15524 DAS "First Use Date"
/// </summary>
bool IsFirstUseValid { get; }
/// <summary>
/// first date of use after calibration
/// only valid if IsFirstUseValid is true
/// null value indicates hardware has not been used since calibration
/// (once again, only if IsFirstUseValid is true)
/// 15524 DAS "First Use Date"
/// </summary>
DateTime? FirstUseDate { get; }
bool IsPseudoRack();
int DASId { get; }
string SerialNumber { get; set; }
string SerialNumberFamily { get; set; }
string EIDFound { get; set; }
string BatteryVoltageStatus { get; set; }
System.Windows.Media.SolidColorBrush BatteryVoltageColor { get; set; }
string InputVoltageStatus { get; set; }
System.Windows.Media.SolidColorBrush InputVoltageColor { get; set; }
/// <summary>
/// Used to display DAS connectivity in Hardware Scan
/// </summary>
string ParentDAS { get; set; }
/// <summary>
/// Used to determine DAS connectivity for Hardware Scan
/// </summary>
string Connection { get; set; }
IHardwareChannel[] GetIHardwareChannels();
/// <summary>
/// returns whether DAS is a SLICE Ethernet Controller or not
/// </summary>
bool IsSLICEEthernetController { get; }
/// <summary>
/// returns true if the the DAS is a TDAS rack
/// </summary>
/// <returns></returns>
bool IsTDASRack();
bool IsG5();
bool IsTSRAIR();
bool IsTSRAIRModule();
/// <summary>
/// returns the minimum sample rate allowed on this DAS
/// </summary>
double GetMinSampleRateDouble();
/// <summary>
/// returns the maximum sample rate allowed on this DAS
/// </summary>
double GetMaxSampleRateDouble();
/// <summary>
/// TTS import sets to True for modules which should not be displayed in Hardware Scan (Slice bridges)
/// and to False for modules which should be displayed (those in TDAS racks)
/// </summary>
/// <returns></returns>
bool IsModule();
string LastModifiedBy { get; set; }
DateTime LastModified { get; set; }
HardwareTypes DASTypeEnum { get; set; }
}
}

View File

@@ -0,0 +1,126 @@
namespace DTS.Common.Interface.DASFactory.ARM
{
public interface IArmStatusData
{
/// <summary>
/// returns true if unit received InvalidMode to query commands during initial setup
/// 15932 Error when performing test when S6A is streaming
/// this is used in some places currently to detect when a unit is streaming
/// </summary>
bool ReceivedInvalidModeDuringSetup { get; set; }
/// <summary>
/// clears any flags set or needed for triggercheck
/// </summary>
void ClearTriggerCheckStatus();
/// <summary>
/// Is the DAS currently armed?
/// </summary>
bool IsArmed { get; set; }
/// <summary>
/// Has the DAS sensed a trigger?
/// </summary>
bool IsTriggered { get; set; }
/// <summary>
/// a little bit distinct from IsTriggered
/// in that IsTriggerShorted is only set during TriggerCheck
/// while IsTriggered is set in many places
/// </summary>
bool IsTriggerShorted { get; set; }
/// <summary>
/// indicates that trigger was shorted
/// is only set during triggercheck
/// </summary>
bool IsStartShorted { get; set; }
/// <summary>
/// Is the DAS currently recording sample data?
/// </summary>
bool IsRecording { get; set; }
/// <summary>
/// Has the DAS faulted?
/// </summary>
bool IsFaulted { get; set; }
/// <summary>
/// Is the DAS in real time mode?
/// </summary>
bool IsInRealtime { get; set; }
/// <summary>
/// is the DAS in flash write (G5)
/// </summary>
bool IsInFlashWrite { get; set; }
/// <summary>
/// used for the times when TDAS ARM STAT READ just doesn't return anything
/// </summary>
bool IsUndefined { get; set; }
/// <summary>
/// Is the DAS in post test diagnostics
/// </summary>
bool IsInPostTestDiagnostics { get; set; }
/// <summary>
/// How many seconds are left of recording?
/// </summary>
double TimeRemainingSeconds { get; set; }
/// <summary>
/// what percentage is complete [flashwrite]
/// </summary>
double PercentComplete { get; set; }
/// <summary>
/// How many samples total will the DAS be recording this test?
/// </summary>
ulong TotalSamples { get; set; }
/// <summary>
/// What sample are we currently recording?
/// </summary>
ulong CurrentSample { get; set; }
/// <summary>
/// At what sample rate are we currently recording?
/// </summary>
uint SampleRate { get; set; }
/// <summary>
/// What's the current input voltage?
/// </summary>
double? InputMilliVolts { get; set; }
/// <summary>
/// What's the current battery voltage (null if no battery)?
/// </summary>
double? BatteryMilliVolts { get; set; }
/// <summary>
/// Which event number is currently being recorded?
/// </summary>
int? EventNumber { get; set; }
//FB 26817
/// <summary>
/// The Max number of events supported by a device
/// </summary>
ushort? MaxEventsPossible { get; set; }
int RecordingMode { get; set; }
/// <summary>
/// optional fault message if there is a fault
/// (software will flag some faults and when we do we know what caused it)
/// </summary>
string FaultMessage { get; set; }
bool IsRearming { get; set; }
bool HasBeenRecording { get; set; }
double? TimeLeftInArm { get; set; }
}
}

View File

@@ -0,0 +1,85 @@
using System.Collections.Generic;
namespace DTS.Common.Classes.TMAT
{
/// <summary>
/// this class handles a TMATS template in only one file
/// </summary>
public class TmtSingleFile : TmtBase
{
/// <summary>
/// reads all lines from the file in the given location and prepare to update values
/// </summary>
/// <param name="templateLocation"></param>
public TmtSingleFile(string templateLocation)
{
if (System.IO.File.Exists(templateLocation))
{
_allLines.AddRange(System.IO.File.ReadAllLines(templateLocation));
}
}
/// <summary>
/// updates the files in the file with a given value
/// </summary>
public override void UpdateValue(TMTChannelKeysEx key, string value, int channelNumber)
{
var pattern = TMTKey.GetKey(key);
for (var i = 0; i < _allLines.Count; i++)
{
if (_allLines[i].Contains(pattern))
{
_allLines[i] = _allLines[i].Replace(pattern, value);
}
}
}
/// <summary>
/// updates the fields in the file with a given value
/// </summary>
/// <param name="key"></param>
/// <param name="value"></param>
public override void UpdateValue(TMTGlobalKeys key, string value)
{
var pattern = TMTKey.GetKey(key);
for (int i = 0; i < _allLines.Count; i++)
{
if (_allLines[i].Contains(pattern))
{
_allLines[i] = _allLines[i].Replace(pattern, value);
}
}
}
/// <summary>
/// updates the files in the file with the given value
/// </summary>
/// <param name="key"></param>
/// <param name="value"></param>
/// <param name="channelNumber"></param>
public override void UpdateValue(TMTChannelKeys key, string value, int channelNumber)
{
var pattern = TMTKey.GetKey(key, channelNumber);
for (int i = 0; i < _allLines.Count; i++)
{
if (_allLines[i].Contains(pattern))
{
_allLines[i] = _allLines[i].Replace(pattern, value);
}
}
}
/// <summary>
/// all lines in the TMT file
/// </summary>
private readonly List<string> _allLines = new List<string>();
/// <summary>
/// returns all lines in the TMT file
/// </summary>
/// <returns></returns>
public override string[] GetAllLines()
{
return _allLines.ToArray();
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 B