283 lines
12 KiB
C#
283 lines
12 KiB
C#
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 TestObject()
|
|
{
|
|
_BarrierHeight.Value = null;
|
|
_BarrierWidth.Value = null;
|
|
_ClassOfTestObject.Value = null;
|
|
_CodeOfTestObject.Value = null;
|
|
_Comment1.Value = null;
|
|
_Comment2.Value = null;
|
|
_Comment3.Value = null;
|
|
_DriverPositionObject.Value = null;
|
|
_ExcitationWarmupMS.Value = null;
|
|
_ImpactSideTestObject.Value = null;
|
|
_Location.Value = null;
|
|
_MassOfTestObject.Value = null;
|
|
_NameOfTestObject.Value = null;
|
|
_NumberOfLoadCells.Value = null;
|
|
_Offset.Value = null;
|
|
_OriginX.Value = null;
|
|
_OriginY.Value = null;
|
|
_OriginZ.Value = null;
|
|
_ReferenceSystem.Value = null;
|
|
_RefNumberOfTestObject.Value = null;
|
|
_SerialNumber.Value = null;
|
|
_TargetSampleRate.Value = null;
|
|
//_TypeOfTestObject.Value = null;
|
|
_Velocity.Value = null;
|
|
_VelocityMeasurementUnit.Value = null;
|
|
_Version.Value = "1.0.0.0";
|
|
_YawAngle.Value = null;
|
|
}
|
|
|
|
public string BarrierHeight
|
|
{
|
|
get => _BarrierHeight.Value;
|
|
set => _BarrierHeight.Value = value;
|
|
}
|
|
private readonly Property<string> _BarrierHeight
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.BarrierHeight", "", false);
|
|
|
|
public string BarrierWidth
|
|
{
|
|
get => _BarrierWidth.Value;
|
|
set => _BarrierWidth.Value = value;
|
|
}
|
|
private readonly Property<string> _BarrierWidth
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.BarrierWidth", "", false);
|
|
|
|
public List<TOChannel> Channels
|
|
{
|
|
get => _Channels.Value;
|
|
set => _Channels.Value = value;
|
|
}
|
|
private readonly Property<List<TOChannel>> _Channels
|
|
= new Property<List<TOChannel>>(typeof(TestObject).Namespace + "TestObject.Channels", new List<TOChannel>(), true);
|
|
|
|
public string ClassOfTestObject
|
|
{
|
|
get => _ClassOfTestObject.Value;
|
|
set => _ClassOfTestObject.Value = value;
|
|
}
|
|
private readonly Property<string> _ClassOfTestObject
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.ClassOfTestObject", "", false);
|
|
|
|
public string CodeOfTestObject
|
|
{
|
|
get => _CodeOfTestObject.Value;
|
|
set => _CodeOfTestObject.Value = value;
|
|
}
|
|
private readonly Property<string> _CodeOfTestObject
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.CodeOfTestObject", "", false);
|
|
|
|
public string Comment1
|
|
{
|
|
get => _Comment1.Value;
|
|
set => _Comment1.Value = value;
|
|
}
|
|
private readonly Property<string> _Comment1
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.Comment1", "", false);
|
|
|
|
public string Comment2
|
|
{
|
|
get => _Comment2.Value;
|
|
set => _Comment2.Value = value;
|
|
}
|
|
private readonly Property<string> _Comment2
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.Comment2", "", false);
|
|
|
|
public string Comment3
|
|
{
|
|
get => _Comment3.Value;
|
|
set => _Comment3.Value = value;
|
|
}
|
|
private readonly Property<string> _Comment3
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.Comment3", "", false);
|
|
|
|
public List<DASHardware> DASHardwares
|
|
{
|
|
get => _DASHardwares.Value;
|
|
set => _DASHardwares.Value = value;
|
|
}
|
|
private readonly Property<List<DASHardware>> _DASHardwares
|
|
= new Property<List<DASHardware>>(typeof(TestObject).Namespace + "TestObject.DASHardwares", new List<DASHardware>(), true);
|
|
|
|
public string DriverPositionObject
|
|
{
|
|
get => _DriverPositionObject.Value;
|
|
set => _DriverPositionObject.Value = value;
|
|
}
|
|
private readonly Property<string> _DriverPositionObject
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.DriverPositionObject", "", false);
|
|
|
|
public string ExcitationWarmupMS
|
|
{
|
|
get => _ExcitationWarmupMS.Value;
|
|
set => _ExcitationWarmupMS.Value = value;
|
|
}
|
|
private readonly Property<string> _ExcitationWarmupMS
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.ExcitationWarmupMS", "", false);
|
|
|
|
public List<ExtraProperty> ExtraProperties
|
|
{
|
|
get => _extraProperties.Value;
|
|
set => _extraProperties.Value = value;
|
|
}
|
|
private readonly Property<List<ExtraProperty>> _extraProperties
|
|
= new Property<List<ExtraProperty>>(typeof(TestObject).Namespace + ".TestObject.ExtraProperties", new List<ExtraProperty>(), true);
|
|
|
|
public string ImpactSideTestObject
|
|
{
|
|
get => _ImpactSideTestObject.Value;
|
|
set => _ImpactSideTestObject.Value = value;
|
|
}
|
|
private readonly Property<string> _ImpactSideTestObject
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.ImpactSideTestObject", "", false);
|
|
|
|
public string Location
|
|
{
|
|
get => _Location.Value;
|
|
set => _Location.Value = value;
|
|
}
|
|
private readonly Property<string> _Location
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.Location", "", false);
|
|
|
|
public string MassOfTestObject
|
|
{
|
|
get => _MassOfTestObject.Value;
|
|
set => _MassOfTestObject.Value = value;
|
|
}
|
|
private readonly Property<string> _MassOfTestObject
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.MassOfTestObject", "", false);
|
|
|
|
public string NameOfTestObject
|
|
{
|
|
get => _NameOfTestObject.Value;
|
|
set => _NameOfTestObject.Value = value;
|
|
}
|
|
private readonly Property<string> _NameOfTestObject
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.NameOfTestObject", "", false);
|
|
|
|
public string NumberOfLoadCells
|
|
{
|
|
get => _NumberOfLoadCells.Value;
|
|
set => _NumberOfLoadCells.Value = value;
|
|
}
|
|
private readonly Property<string> _NumberOfLoadCells
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.NumberOfLoadCells", "", false);
|
|
|
|
public string Offset
|
|
{
|
|
get => _Offset.Value;
|
|
set => _Offset.Value = value;
|
|
}
|
|
private readonly Property<string> _Offset
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.Offset", "", false);
|
|
|
|
public string OriginX
|
|
{
|
|
get => _OriginX.Value;
|
|
set => _OriginX.Value = value;
|
|
}
|
|
private readonly Property<string> _OriginX
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.OriginX", "", false);
|
|
|
|
public string OriginY
|
|
{
|
|
get => _OriginY.Value;
|
|
set => _OriginY.Value = value;
|
|
}
|
|
private readonly Property<string> _OriginY
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.OriginY", "", false);
|
|
|
|
public string OriginZ
|
|
{
|
|
get => _OriginZ.Value;
|
|
set => _OriginZ.Value = value;
|
|
}
|
|
private readonly Property<string> _OriginZ
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.OriginZ", "", false);
|
|
|
|
public string ReferenceSystem
|
|
{
|
|
get => _ReferenceSystem.Value;
|
|
set => _ReferenceSystem.Value = value;
|
|
}
|
|
private readonly Property<string> _ReferenceSystem
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.ReferenceSystem", "", false);
|
|
|
|
public string RefNumberOfTestObject
|
|
{
|
|
get => _RefNumberOfTestObject.Value;
|
|
set => _RefNumberOfTestObject.Value = value;
|
|
}
|
|
private readonly Property<string> _RefNumberOfTestObject
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.RefNumberOfTestObject", "", false);
|
|
|
|
public string SerialNumber
|
|
{
|
|
get => _SerialNumber.Value;
|
|
set => _SerialNumber.Value = value;
|
|
}
|
|
private readonly Property<string> _SerialNumber
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.SerialNumber", "", false);
|
|
|
|
public string TargetSampleRate
|
|
{
|
|
get => _TargetSampleRate.Value;
|
|
set => _TargetSampleRate.Value = value;
|
|
}
|
|
private readonly Property<string> _TargetSampleRate
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.TargetSampleRate", "", false);
|
|
|
|
//public string TypeOfTestObject
|
|
//{
|
|
// get { return _TypeOfTestObject.Value; }
|
|
// set { _TypeOfTestObject.Value = value; }
|
|
//}
|
|
//private Property<string> _TypeOfTestObject
|
|
// = new Property<string>(typeof(TestObject).Namespace + ".TestObject.TypeOfTestObject", "", false);
|
|
public string Velocity
|
|
{
|
|
get => _Velocity.Value;
|
|
set => _Velocity.Value = value;
|
|
}
|
|
private readonly Property<string> _Velocity
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.Velocity", "", false);
|
|
|
|
public string VelocityMeasurementUnit
|
|
{
|
|
get => _VelocityMeasurementUnit.Value;
|
|
set => _VelocityMeasurementUnit.Value = value;
|
|
}
|
|
private readonly Property<string> _VelocityMeasurementUnit
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.VelocityMeasurementUnit", "", false);
|
|
|
|
public string Version
|
|
{
|
|
get => _Version.Value;
|
|
set => _Version.Value = value;
|
|
}
|
|
private readonly Property<string> _Version
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.Version", "", false);
|
|
|
|
public string YawAngle
|
|
{
|
|
get => _YawAngle.Value;
|
|
set => _YawAngle.Value = value;
|
|
}
|
|
private readonly Property<string> _YawAngle
|
|
= new Property<string>(typeof(TestObject).Namespace + ".TestObject.YawAngle", "", false);
|
|
}
|
|
}
|
|
}
|