55 lines
2.1 KiB
Plaintext
55 lines
2.1 KiB
Plaintext
|
|
using System.Collections.Generic;
|
||
|
|
using DTS.Common.Utilities;
|
||
|
|
using DTS.Common.Utilities.DotNetProgrammingConstructs;
|
||
|
|
|
||
|
|
namespace DTS.Serialization
|
||
|
|
{
|
||
|
|
public partial class TestSetup : Exceptional
|
||
|
|
{
|
||
|
|
public partial class TestObject : Exceptional
|
||
|
|
{
|
||
|
|
public partial class DASHardware : Exceptional
|
||
|
|
{
|
||
|
|
public DASHardware()
|
||
|
|
{
|
||
|
|
_sampleRate.Value = null;
|
||
|
|
_serialNumber.Value = null;
|
||
|
|
_version.Value = "1.0.0.0";
|
||
|
|
}
|
||
|
|
|
||
|
|
public List<DASChannel> DASChannels
|
||
|
|
{
|
||
|
|
get => _dasChannels.Value;
|
||
|
|
set => _dasChannels.Value = value;
|
||
|
|
}
|
||
|
|
private readonly Property<List<DASChannel>> _dasChannels
|
||
|
|
= new Property<List<DASChannel>>(typeof(TestObject).Namespace + "DASHardware.DASChannels", new List<DASChannel>(), true);
|
||
|
|
|
||
|
|
public string SampleRate
|
||
|
|
{
|
||
|
|
get => _sampleRate.Value;
|
||
|
|
set => _sampleRate.Value = value;
|
||
|
|
}
|
||
|
|
private readonly Property<string> _sampleRate
|
||
|
|
= new Property<string>(typeof(TestObject).Namespace + ".DASHardware.SampleRate", "", false);
|
||
|
|
|
||
|
|
public string SerialNumber
|
||
|
|
{
|
||
|
|
get => _serialNumber.Value;
|
||
|
|
set => _serialNumber.Value = value;
|
||
|
|
}
|
||
|
|
private readonly Property<string> _serialNumber
|
||
|
|
= new Property<string>(typeof(TestObject).Namespace + ".DASHardware.SerialNumber", "", false);
|
||
|
|
|
||
|
|
public string Version
|
||
|
|
{
|
||
|
|
get => _version.Value;
|
||
|
|
set => _version.Value = value;
|
||
|
|
}
|
||
|
|
private readonly Property<string> _version
|
||
|
|
= new Property<string>(typeof(TestObject).Namespace + ".DASHardware.Version", "", false);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|