27 lines
815 B
C#
27 lines
815 B
C#
///
|
|
/// Copyright (c) 2013-2016 Sensus Metering Systems
|
|
///
|
|
using System.Collections.Generic;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Elde.FlowMeter
|
|
{
|
|
public class FlowMeterFactory : IComponentFactory
|
|
{
|
|
public string ClassName { get { return "FlowMeter"; } }
|
|
|
|
public void ResetStaticProperties() { FlowMeter.ResetStaticProperties(); }
|
|
|
|
public IComponent DummyComponent() { return new FlowMeter(); }
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new FlowMeter(cfg, components); }
|
|
|
|
public IComponentCfg DefaultConfig() { return new FlowMeterCfg(this); }
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
|
{
|
|
return ComponentCfgBase.CreateFromDbEntity(typeof(FlowMeterCfg), component, this);
|
|
}
|
|
}
|
|
}
|