2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
|
|
|
|
///
|
|
|
|
|
|
using System;
|
2015-01-02 18:14:19 +00:00
|
|
|
|
using System.Collections.Generic;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
using TBF.BenchControl.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace TBF.BenchControl.Elde.TempMeter
|
|
|
|
|
|
{
|
|
|
|
|
|
public class TempMeterCfg : ComponentCfgBase, IChildComponentCfg
|
|
|
|
|
|
{
|
2015-01-02 18:14:19 +00:00
|
|
|
|
public IComponent GetComponent(IList<IComponent> components) { return new TempMeter(this, components); }
|
|
|
|
|
|
public IComponentCfgCtrl GetControl() { return new TempMeterCfgCtrl(); }
|
|
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
/// Serialized parameters
|
|
|
|
|
|
///
|
|
|
|
|
|
public int Idx0; /// 0..7
|
2014-07-28 07:54:35 +00:00
|
|
|
|
public float A1;
|
|
|
|
|
|
public float A2;
|
|
|
|
|
|
public float A3;
|
|
|
|
|
|
public float A4;
|
|
|
|
|
|
public float A5;
|
|
|
|
|
|
|
2014-12-31 12:46:33 +00:00
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
|
|
|
|
TempMeterCfg()
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2015-06-22 12:24:06 +00:00
|
|
|
|
Name = "T";
|
2014-12-29 15:00:27 +00:00
|
|
|
|
ParentName = "CB";
|
|
|
|
|
|
Idx0 = 0;
|
|
|
|
|
|
A1 = 0;
|
|
|
|
|
|
A2 = 0;
|
|
|
|
|
|
A3 = 0;
|
|
|
|
|
|
A4 = 0;
|
|
|
|
|
|
A5 = 0;
|
|
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2014-12-29 15:00:27 +00:00
|
|
|
|
public TempMeterCfg(IComponentFactory factory)
|
|
|
|
|
|
: this()
|
|
|
|
|
|
{
|
|
|
|
|
|
this.Factory = factory;
|
|
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2014-12-29 15:00:27 +00:00
|
|
|
|
public string ToString(int i)
|
|
|
|
|
|
{
|
|
|
|
|
|
return string.Format("Name={0}, Parent={1}, Idx0={2}, A1={3}, A2={4}, A3={5}, A4={6}, A5={7}",
|
|
|
|
|
|
Name,
|
|
|
|
|
|
(string.IsNullOrEmpty(ParentName) ? "-" : ParentName),
|
|
|
|
|
|
Idx0,
|
|
|
|
|
|
A1, A2, A3, A4, A5);
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|