using System.Collections.Generic;
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.WaterMeter
{
public class WaterMeterFactory : IComponentFactory
{
public string ClassName { get { return "WaterMeter"; } }
public bool HasProcedureParams { get { return true; } }
public bool HasTestParams { get { return false; } }
public IParamsProvider GetTestParams(Entities.ComponentTest testParams) { return null; }
public IParamsProvider GetProcedureParams(Entities.ComponentProcedure procedureParams)
{
return ProcParams.GetProcedureParams(procedureParams);
}
/// Max. number of components of this class in the system
public int MaxCount { get { return int.MaxValue; } }
public IComponentCfg DefaultConfig(IList components)
{
return new WaterMeterCfg(this, "WaterMeter");
}
public IComponentCfgCtrl CreateCfgCtrl()
{
return new WaterMeterCfgCtrl();
}
public IComponent ComponentFromCmpntCfg(IComponentCfg config, IList components)
{
return new WaterMeter((WaterMeterCfg)config);
}
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
{
return WaterMeterCfg.CreateFromDbEntity(component, this);
}
public void ResetStaticProperties() { WaterMeter.ResetStaticProperties(); }
}
}