init
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user