27 lines
887 B
C#
27 lines
887 B
C#
///
|
|
/// Copyright (c) 2016-2020 Sensus Slovensko a.s.
|
|
///
|
|
using System.Collections.Generic;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Modbus.Meret.PressureMeter
|
|
{
|
|
public class Factory : IComponentFactory
|
|
{
|
|
public string ClassName { get { return this.GetType().Namespace.Substring(17); } }
|
|
|
|
public void ResetStaticProperties() { PressureMeter.ResetStaticProperties(); }
|
|
|
|
public IComponent DummyComponent() { return new PressureMeter(); }
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new PressureMeter(cfg, components); }
|
|
|
|
public IComponentCfg DefaultConfig() { return new PressureMeterCfg(this); }
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
|
{
|
|
return ComponentCfgBase.CreateFromDbEntity(PressureMeterCfg.Serializer, component, this);
|
|
}
|
|
}
|
|
}
|