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