27 lines
825 B
C#
27 lines
825 B
C#
|
|
///
|
|||
|
|
/// Copyright (c) 2017 Sensus Slovensko a.s.
|
|||
|
|
///
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using TBF.BenchControl.Generic;
|
|||
|
|
|
|||
|
|
namespace TBF.BenchControl.Elde.FlowMeterTriplet
|
|||
|
|
{
|
|||
|
|
public class FlowMeterFactory : IComponentFactory
|
|||
|
|
{
|
|||
|
|
public string ClassName { get { return "FlowMeterTriplet"; } }
|
|||
|
|
|
|||
|
|
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(FlowMeterCfg.Serializer, component, this);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|