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