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