using System.Collections.Generic;
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.Elde.Valve
{
public class ValveFactory : IComponentFactory
{
public string ClassName { get { return "Valve"; } }
/// Max. number of components of this class in the system
public int MaxCount { get { return int.MaxValue; } }
public IComponentCfg DefaultConfig(IList components)
{
return new ValveCfg(this);
}
public IComponentCfgCtrl CreateCfgCtrl()
{
return new ValveCfgCtrl();
}
public IComponent ComponentFromCmpntCfg(IComponentCfg config, IList components)
{
return new Valve((ValveCfg)config, components);
}
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
{
return ComponentCfgBase.CreateFromDbEntity(typeof(ValveCfg), component, this);
}
public void ResetStaticProperties() { Valve.ResetStaticProperties(); }
}
}