25 lines
760 B
C#
25 lines
760 B
C#
///
|
|
/// Copyright (c) 2013-2016 Sensus Metering Systems
|
|
///
|
|
using System.Collections.Generic;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Elde.Diverter
|
|
{
|
|
public class DiverterFactory : IComponentFactory
|
|
{
|
|
public string ClassName { get { return "Diverter"; } }
|
|
|
|
public IComponent DummyComponent() { return new Diverter(); }
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new Diverter(cfg, components); }
|
|
|
|
public IComponentCfg DefaultConfig() { return new DiverterCfg(this); }
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
|
{
|
|
return ComponentCfgBase.CreateFromDbEntity(DiverterCfg.Serializer, component, this);
|
|
}
|
|
}
|
|
}
|