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