tbf/TestBenchFramework/BenchControl/Keithley/RS232/Factory.cs

24 lines
709 B
C#

///
/// Copyright (c) 2016 Sensus Metering Systems
///
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.Keithley.RS232
{
public class Factory : IComponentFactory
{
public string ClassName { get { return this.GetType().Namespace.Substring(17) + ".Multimeter"; } }
public void ResetStaticProperties() { Multimeter.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Multimeter(); }
public IComponentCfg DefaultConfig() { return new MultimeterCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{
return ComponentCfgBase.CreateFromDbEntity(typeof(MultimeterCfg), component, this);
}
}
}