Files
DP44/Common/DTS.Common.Serialization/TestSetup.TestObject.cs
2026-04-17 14:55:32 -04:00

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