2014-09-10 11:43:33 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using TBF.BenchControl.Generic;
|
|
|
|
|
|
|
2014-09-15 20:00:30 +00:00
|
|
|
|
namespace TBF.BenchControl.Elde.FlowMeterTwins
|
2014-09-10 11:43:33 +00:00
|
|
|
|
{
|
|
|
|
|
|
public class FlowMeterFactory : IComponentFactory
|
|
|
|
|
|
{
|
2014-09-15 20:00:30 +00:00
|
|
|
|
public string ClassName { get { return "FlowMeterTwins"; } }
|
2014-09-10 11:43:33 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>Max. number of components of this class in the system</summary>
|
|
|
|
|
|
public int MaxCount { get { return 1; } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public IComponentCfg DefaultConfig(IList<Entities.Component> components)
|
|
|
|
|
|
{
|
2014-12-29 15:00:27 +00:00
|
|
|
|
return new FlowMeterCfg(this);
|
2014-09-10 11:43:33 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IComponentCfgCtrl CreateCfgCtrl()
|
|
|
|
|
|
{
|
|
|
|
|
|
return new FlowMeterCfgCtrl();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IComponent ComponentFromCmpntCfg(IComponentCfg config, IList<Generic.IComponent> components)
|
|
|
|
|
|
{
|
|
|
|
|
|
return new FlowMeter((FlowMeterCfg)config, components);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
|
|
|
|
|
|
{
|
2014-12-29 15:00:27 +00:00
|
|
|
|
return ComponentCfgBase.CreateFromDbEntity(typeof(FlowMeterCfg), component, this);
|
2014-09-10 11:43:33 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void ResetStaticProperties() { FlowMeter.ResetStaticProperties(); }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|