2016-06-23 14:39:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
/// Copyright (c) 2016 Sensus Metering Systems
|
|
|
|
|
|
///
|
2016-08-05 12:32:36 +00:00
|
|
|
|
using System.Collections.Generic;
|
2016-06-23 14:39:56 +00:00
|
|
|
|
using TBF.BenchControl.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace TBF.BenchControl.Keithley.TempMeter
|
|
|
|
|
|
{
|
|
|
|
|
|
public class Factory : IComponentFactory
|
|
|
|
|
|
{
|
2016-08-22 14:14:59 +00:00
|
|
|
|
public string ClassName { get { return GetType().Namespace.Substring(17); } }
|
2016-06-23 14:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
public IComponent DummyComponent() { return new TempMeter(); }
|
|
|
|
|
|
|
2016-08-05 12:32:36 +00:00
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new TempMeter(cfg, components); }
|
|
|
|
|
|
|
2016-08-22 14:14:59 +00:00
|
|
|
|
public IComponentCfg DefaultConfig() { return new TempMeterCfg(GetType().Namespace.Substring(17), this); }
|
2016-06-23 14:39:56 +00:00
|
|
|
|
|
|
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
|
|
|
|
|
{
|
2017-06-21 21:39:34 +00:00
|
|
|
|
return ComponentCfgBase.CreateFromDbEntity(TempMeterCfg.Serializer, component, this);
|
2016-06-23 14:39:56 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|