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