75 lines
2.5 KiB
C#
75 lines
2.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using DTS.Utilities;
|
|
using DTS.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 { return _FilterClass.Value; }
|
|
set { _FilterClass.Value = value; }
|
|
}
|
|
private Property<string> _FilterClass
|
|
= new Property<string>(typeof(Graph).Namespace + ".Sensor.FilterClass", "", false);
|
|
|
|
public string Name
|
|
{
|
|
get { return _Name.Value; }
|
|
set { _Name.Value = value; }
|
|
}
|
|
private Property<string> _Name
|
|
= new Property<string>(typeof(Graph).Namespace + ".Sensor.Name", "", false);
|
|
|
|
public string Polarity
|
|
{
|
|
get { return _Polarity.Value; }
|
|
set { _Polarity.Value = value; }
|
|
}
|
|
private Property<string> _Polarity
|
|
= new Property<string>(typeof(Graph).Namespace + ".Sensor.Polarity", "", false);
|
|
|
|
public string Position
|
|
{
|
|
get { return _Position.Value; }
|
|
set { _Position.Value = value; }
|
|
}
|
|
private Property<string> _Position
|
|
= new Property<string>(typeof(Graph).Namespace + ".Sensor.Position", "", false);
|
|
|
|
public string Range
|
|
{
|
|
get { return _Range.Value; }
|
|
set { _Range.Value = value; }
|
|
}
|
|
private Property<string> _Range
|
|
= new Property<string>(typeof(Graph).Namespace + ".Sensor.Range", "", false);
|
|
|
|
public string Version
|
|
{
|
|
get { return _Version.Value; }
|
|
set { _Version.Value = value; }
|
|
}
|
|
private Property<string> _Version
|
|
= new Property<string>(typeof(Graph).Namespace + ".Sensor.Version", "", false);
|
|
}
|
|
}
|
|
}
|