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