28 lines
895 B
C#
28 lines
895 B
C#
///
|
|
/// Copyright (c) 2015-2017 Sensus Metering Systems
|
|
///
|
|
using System.Collections.Generic;
|
|
using TBF.Rig.Generic;
|
|
|
|
namespace TBF.Rig.TestMethods.iPerlCommunication.iPerlHead
|
|
{
|
|
public class Factory : IComponentFactory
|
|
{
|
|
public string ClassName { get { return "RegisterReader for iPerl"; } }
|
|
|
|
//TODO BuMi to the future, now has class name as 'Factory' !
|
|
//public override string ToString() { return ClassName; }
|
|
|
|
public IComponent DummyComponent() { return new IperlHead(); }
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new IperlHead(cfg); }
|
|
|
|
public IComponentCfg DefaultConfig() { return new IperlHeadCfg(this); }
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
|
{
|
|
return ComponentCfgBase.CreateFromDbEntity(IperlHeadCfg.Serializer, component, this);
|
|
}
|
|
}
|
|
}
|