tbf/TestBenchFramework/BenchControl/Modbus/QuidoRS/Factory.cs

24 lines
652 B
C#
Raw Normal View History

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