2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
2016-08-05 12:32:36 +00:00
|
|
|
|
/// Copyright (c) 2013-2016 Sensus Metering Systems
|
2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
2016-08-05 12:32:36 +00:00
|
|
|
|
using System.Collections.Generic;
|
2021-10-26 09:23:57 +00:00
|
|
|
|
using TBF.Rig.Generic;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2021-10-26 09:23:57 +00:00
|
|
|
|
namespace TBF.Rig.TestMethods.FlyingStartMassCollection.Compound
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public class Factory : IComponentFactory
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2021-10-26 09:23:57 +00:00
|
|
|
|
public string ClassName { get { return GetType().Namespace.Substring(8); } }
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public IComponent DummyComponent() { return new Component(); }
|
2015-06-29 09:14:33 +00:00
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new Component(cfg); }
|
2016-08-05 12:32:36 +00:00
|
|
|
|
|
2022-04-05 13:50:47 +00:00
|
|
|
|
public IComponentCfg DefaultConfig() { return new TestMethodCfg(GetType().Namespace.Substring(20), this); }
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2015-12-04 16:17:20 +00:00
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2017-06-21 21:39:34 +00:00
|
|
|
|
return ComponentCfgBase.CreateFromDbEntity(TestMethodCfg.Serializer, component, this);
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|