61 lines
1.5 KiB
C#
61 lines
1.5 KiB
C#
|
|
///
|
|||
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|||
|
|
///
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.IO;
|
|||
|
|
using System.Xml.Serialization;
|
|||
|
|
using TBF.BenchControl.Generic;
|
|||
|
|
|
|||
|
|
namespace TBF.BenchControl.Dummy.FlowMeter
|
|||
|
|
{
|
|||
|
|
public class FlowMeterCfg : ComponentCfgBase, GenericDevices.ICalibInfoCfg, IComponentCfg
|
|||
|
|
{
|
|||
|
|
public IComponentCfgCtrl GetControl() { return new FlowMeterCfgCtrl(); }
|
|||
|
|
|
|||
|
|
///
|
|||
|
|
/// Serialized parameters
|
|||
|
|
///
|
|||
|
|
public float NominalFlow; /// Nominal flow in m3/h at output frequency 2000 Hz
|
|||
|
|
|
|||
|
|
/// Calibration info serialized parameters displayed in Metrology tab page
|
|||
|
|
string calibCertificateNr;
|
|||
|
|
DateTime calibDate;
|
|||
|
|
DateTime calibValidDate;
|
|||
|
|
public string CalibCertificateNr
|
|||
|
|
{
|
|||
|
|
get { return calibCertificateNr; }
|
|||
|
|
set { calibCertificateNr = value; }
|
|||
|
|
}
|
|||
|
|
public DateTime CalibDate
|
|||
|
|
{
|
|||
|
|
get { return calibDate; }
|
|||
|
|
set { calibDate = value; }
|
|||
|
|
}
|
|||
|
|
public DateTime CalibValidDate
|
|||
|
|
{
|
|||
|
|
get { return calibValidDate; }
|
|||
|
|
set { calibValidDate = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|||
|
|
FlowMeterCfg()
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public FlowMeterCfg(string name, IComponentFactory factory)
|
|||
|
|
: this()
|
|||
|
|
{
|
|||
|
|
Name = name;
|
|||
|
|
Factory = factory;
|
|||
|
|
NominalFlow = 1.0f;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public string ToString(int i)
|
|||
|
|
{
|
|||
|
|
return string.Format("Name={0}, NominalFlow={1}", Name, NominalFlow);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|