71 lines
2.4 KiB
C#
71 lines
2.4 KiB
C#
|
|
using DTS.Common.Utilities;
|
|||
|
|
using DTS.Common.Utilities.DotNetProgrammingConstructs;
|
|||
|
|
|
|||
|
|
namespace DTS.Serialization
|
|||
|
|
{
|
|||
|
|
//[Serializable]
|
|||
|
|
public partial class TestSetup : Exceptional
|
|||
|
|
{
|
|||
|
|
public partial class Sensor : Exceptional
|
|||
|
|
{
|
|||
|
|
public Sensor()
|
|||
|
|
{
|
|||
|
|
_filterClass.Value = null;
|
|||
|
|
_name.Value = null;
|
|||
|
|
_polarity.Value = null;
|
|||
|
|
_position.Value = null;
|
|||
|
|
_range.Value = null;
|
|||
|
|
_version.Value = "1.0.0.0";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public string FilterClass
|
|||
|
|
{
|
|||
|
|
get => _filterClass.Value;
|
|||
|
|
set => _filterClass.Value = value;
|
|||
|
|
}
|
|||
|
|
private readonly Property<string> _filterClass
|
|||
|
|
= new Property<string>(typeof(Graph).Namespace + ".Sensor.FilterClass", "", false);
|
|||
|
|
|
|||
|
|
public string Name
|
|||
|
|
{
|
|||
|
|
get => _name.Value;
|
|||
|
|
set => _name.Value = value;
|
|||
|
|
}
|
|||
|
|
private readonly Property<string> _name
|
|||
|
|
= new Property<string>(typeof(Graph).Namespace + ".Sensor.Name", "", false);
|
|||
|
|
|
|||
|
|
public string Polarity
|
|||
|
|
{
|
|||
|
|
get => _polarity.Value;
|
|||
|
|
set => _polarity.Value = value;
|
|||
|
|
}
|
|||
|
|
private readonly Property<string> _polarity
|
|||
|
|
= new Property<string>(typeof(Graph).Namespace + ".Sensor.Polarity", "", false);
|
|||
|
|
|
|||
|
|
public string Position
|
|||
|
|
{
|
|||
|
|
get => _position.Value;
|
|||
|
|
set => _position.Value = value;
|
|||
|
|
}
|
|||
|
|
private readonly Property<string> _position
|
|||
|
|
= new Property<string>(typeof(Graph).Namespace + ".Sensor.Position", "", false);
|
|||
|
|
|
|||
|
|
public string Range
|
|||
|
|
{
|
|||
|
|
get => _range.Value;
|
|||
|
|
set => _range.Value = value;
|
|||
|
|
}
|
|||
|
|
private readonly Property<string> _range
|
|||
|
|
= new Property<string>(typeof(Graph).Namespace + ".Sensor.Range", "", false);
|
|||
|
|
|
|||
|
|
public string Version
|
|||
|
|
{
|
|||
|
|
get => _version.Value;
|
|||
|
|
set => _version.Value = value;
|
|||
|
|
}
|
|||
|
|
private readonly Property<string> _version
|
|||
|
|
= new Property<string>(typeof(Graph).Namespace + ".Sensor.Version", "", false);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|