58 lines
2.1 KiB
C#
58 lines
2.1 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using DTS.Utilities;
|
|||
|
|
using DTS.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 { return _DASChannels.Value; }
|
|||
|
|
set { _DASChannels.Value = value; }
|
|||
|
|
}
|
|||
|
|
private Property<List<DASChannel>> _DASChannels
|
|||
|
|
= new Property<List<DASChannel>>(typeof(TestObject).Namespace + "DASHardware.DASChannels", new List<DASChannel>(), true);
|
|||
|
|
|
|||
|
|
public string SampleRate
|
|||
|
|
{
|
|||
|
|
get { return _SampleRate.Value; }
|
|||
|
|
set { _SampleRate.Value = value; }
|
|||
|
|
}
|
|||
|
|
private Property<string> _SampleRate
|
|||
|
|
= new Property<string>(typeof(TestObject).Namespace + ".DASHardware.SampleRate", "", false);
|
|||
|
|
|
|||
|
|
public string SerialNumber
|
|||
|
|
{
|
|||
|
|
get { return _SerialNumber.Value; }
|
|||
|
|
set { _SerialNumber.Value = value; }
|
|||
|
|
}
|
|||
|
|
private Property<string> _SerialNumber
|
|||
|
|
= new Property<string>(typeof(TestObject).Namespace + ".DASHardware.SerialNumber", "", false);
|
|||
|
|
|
|||
|
|
public string Version
|
|||
|
|
{
|
|||
|
|
get { return _Version.Value; }
|
|||
|
|
set { _Version.Value = value; }
|
|||
|
|
}
|
|||
|
|
private Property<string> _Version
|
|||
|
|
= new Property<string>(typeof(TestObject).Namespace + ".DASHardware.Version", "", false);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|