tbf/TestBenchFramework/BenchControl/Keithley/TempMeter/TempMeterCfg.cs
2016-08-23 15:21:17 +02:00

44 lines
1.1 KiB
C#

///
/// Copyright (c) 2016 Sensus Metering Systems
///
using System;
using System.Collections.Generic;
using System.IO;
using System.Xml.Serialization;
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.Keithley.TempMeter
{
public class TempMeterCfg : ComponentCfgBase, IChildComponentCfg
{
public IComponentCfgCtrl GetControl() { return new TempMeterCfgCtrl(); }
///
/// Serialized parameters
///
public int Channel; /// 1..5
/// Private parameterless constructor invoked by all other (public) constructors
TempMeterCfg()
{
}
public TempMeterCfg(string name, IComponentFactory factory)
: this()
{
this.Name = name;
this.Factory = factory;
ParentName = "Keithley.Multimeter_2010_RS232";
Channel = 1;
}
public string ToString(int i)
{
return string.Format("Name={0}, Parent={1}, Channel={2}",
Name,
(string.IsNullOrEmpty(ParentName) ? "-" : ParentName),
Channel);
}
}
}