47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
using System.Collections.Generic;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Elde.FixedStartRegisterReader
|
|
{
|
|
public class RegisterReaderFactory : IComponentFactory
|
|
{
|
|
public string ClassName { get { return "Fixed-Start-Register-Reader"; } }
|
|
|
|
/// <summary>Max. number of components of this class in the system</summary>
|
|
public int MaxCount { get { return Program.WMsCount; } }
|
|
|
|
public IComponentCfg DefaultConfig(IList<Entities.Component> components)
|
|
{
|
|
return new RegisterReaderCfg(this);
|
|
}
|
|
|
|
public IComponentCfgCtrl CreateCfgCtrl()
|
|
{
|
|
return new RegisterReaderCfgCtrl();
|
|
}
|
|
|
|
public IComponent ComponentFromCmpntCfg(IComponentCfg config, IList<Generic.IComponent> components)
|
|
{
|
|
return new RegisterReader((RegisterReaderCfg)config, components);
|
|
}
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
|
|
{
|
|
return ComponentCfgBase.CreateFromDbEntity(typeof(RegisterReaderCfg), component, this);
|
|
}
|
|
|
|
public bool HasProcedureParams { get { return true; } }
|
|
///
|
|
public IParamsProvider GetProcedureParams(Entities.ComponentProcedure procedureParams)
|
|
{
|
|
return RRProcedureParams.GetProcedureParams(procedureParams);
|
|
}
|
|
|
|
public bool HasTestParams { get { return false; } }
|
|
///
|
|
public IParamsProvider GetTestParams(Entities.ComponentTest testParams) { return null; }
|
|
|
|
public void ResetStaticProperties() { RegisterReader.ResetStaticProperties(); }
|
|
}
|
|
}
|