tbf/TestBenchFramework/BenchControl/Modbus/Common/Factory.cs
Milan Hanajik f2da177517 Modbus and QuidoRS components added
WaterMeters folder created, WaterMeter component relocated within the project, iPerl component added
WaterMeters.iPerl implements IRegisterReader interface, TODO: Implement WaterMeter.ReadPulses( ) function
iPerlAdjustment test method added
2015-07-31 19:18:56 +02:00

24 lines
639 B
C#

///
/// Copyright (c) 2015 Sensus Metering Systems
///
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.Modbus.Common
{
public class Factory : IComponentFactory
{
public string ClassName { get { return "Modbus"; } }
public void ResetStaticProperties() { Modbus.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Modbus(); }
public IComponentCfg DefaultConfig() { return new ModbusCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
{
return ComponentCfgBase.CreateFromDbEntity(typeof(ModbusCfg), component, this);
}
}
}