27 lines
865 B
C#
27 lines
865 B
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
using System.Collections.Generic;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Network.Adapter
|
|
{
|
|
public class Factory : IComponentFactory
|
|
{
|
|
public string ClassName { get { return this.GetType().Namespace.Substring(17); } }
|
|
|
|
public void ResetStaticProperties() { Netadapter.ResetStaticProperties(); }
|
|
|
|
public IComponent DummyComponent() { return new Netadapter(); }
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new Netadapter(cfg); }
|
|
|
|
public IComponentCfg DefaultConfig() { return new NetadapterCfg(this.GetType().Namespace.Substring(17), this); }
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
|
{
|
|
return ComponentCfgBase.CreateFromDbEntity(NetadapterCfg.Serializer, component, this);
|
|
}
|
|
}
|
|
}
|