2014-07-28 07:54:35 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
using TBF.BenchControl.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace TBF.BenchControl.Elde.FlowMeter
|
|
|
|
|
|
{
|
|
|
|
|
|
public class FlowMeterCfg : ComponentCfgBase, Generic.IChildComponentCfg
|
|
|
|
|
|
{
|
2014-12-29 15:00:27 +00:00
|
|
|
|
public int Idx1; /// 1..5
|
2014-07-28 07:54:35 +00:00
|
|
|
|
public float NominalFlow; /// Nominal flow in m3/h at output frequency 2000 Hz
|
2014-12-31 12:46:33 +00:00
|
|
|
|
|
|
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
|
|
|
|
FlowMeterCfg()
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2014-12-29 15:00:27 +00:00
|
|
|
|
Name = "FlowMeter";
|
|
|
|
|
|
ParentName = "CB";
|
|
|
|
|
|
Idx1 = 1;
|
|
|
|
|
|
NominalFlow = 1;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2014-12-29 15:00:27 +00:00
|
|
|
|
public FlowMeterCfg(IComponentFactory factory)
|
|
|
|
|
|
: this()
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2014-12-29 15:00:27 +00:00
|
|
|
|
this.Factory = factory;
|
|
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
public string ToString(int i)
|
|
|
|
|
|
{
|
2014-12-29 15:00:27 +00:00
|
|
|
|
return string.Format("Name={0}, Parent={1}, Idx1={2}, NominalFlow={3}",
|
|
|
|
|
|
Name,
|
|
|
|
|
|
(string.IsNullOrEmpty(ParentName) ? "-" : ParentName),
|
|
|
|
|
|
Idx1,
|
|
|
|
|
|
NominalFlow);
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|