2015-08-11 06:50:32 +00:00
|
|
|
|
///
|
2016-08-05 12:32:36 +00:00
|
|
|
|
/// Copyright (c) 2015-2016 Sensus Metering Systems
|
2015-08-11 06:50:32 +00:00
|
|
|
|
///
|
2016-08-05 12:32:36 +00:00
|
|
|
|
using System.Collections.Generic;
|
2021-03-05 13:47:21 +00:00
|
|
|
|
using TBF.Rig.Generic;
|
2015-08-11 06:50:32 +00:00
|
|
|
|
|
2021-03-05 13:47:21 +00:00
|
|
|
|
namespace TBF.Rig.TestMethods.iPerlCommunication
|
2015-08-11 06:50:32 +00:00
|
|
|
|
{
|
|
|
|
|
|
public class TestMethodFactory : IComponentFactory
|
|
|
|
|
|
{
|
2022-01-25 15:16:12 +00:00
|
|
|
|
public string ClassName { get { return GetType().Namespace.Substring(8); } }
|
2015-08-11 06:50:32 +00:00
|
|
|
|
|
|
|
|
|
|
public IComponent DummyComponent() { return new TestMethod(); }
|
|
|
|
|
|
|
2016-08-05 12:32:36 +00:00
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new TestMethod(cfg); }
|
|
|
|
|
|
|
2026-03-12 13:50:47 +00:00
|
|
|
|
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
|
2015-08-11 06:50:32 +00:00
|
|
|
|
|
2015-12-04 16:17:20 +00:00
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
2015-08-11 06:50:32 +00:00
|
|
|
|
{
|
2026-03-12 13:50:47 +00:00
|
|
|
|
return ComponentCfgBase.CreateFromDbEntity(TestMethodCfg.Serializer, component, this);
|
2015-08-11 06:50:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|