tbf/TestBenchFramework/BenchControl/TestMethods/FlyingStart/TestMethodFactory.cs
Milan Hanajik b8faca784e - ReferenceFlowmeterCalibration method and sequence (ready for tests)
- FlyingStart method and sequence files prepared for implementation (copies of FlyingStartMassCollection)
2014-09-06 17:34:26 +02:00

41 lines
1.3 KiB
C#

using System.Collections.Generic;
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.TestMethods.FlyingStart
{
public class TestMethodFactory : IComponentFactory
{
public string ClassName { get { return "FlyingStart"; } }
public bool HasProcedureParams { get { return false; } }
public bool HasTestParams { get { return false; } }
public IParamsProvider GetTestParams(Entities.ComponentTest testParams) { return null; }
public IParamsProvider GetProcedureParams(Entities.ComponentProcedure procedureParams) { return null; }
/// <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)
{
return new TestMethodCfg(this, "FlyingStart");
}
public IComponentCfgCtrl CreateCfgCtrl()
{
return new TestMethodCfgCtrl();
}
public IComponent ComponentFromCmpntCfg(IComponentCfg config, IList<Generic.IComponent> components)
{
return new TestMethod((TestMethodCfg)config);
}
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
{
return TestMethodCfg.CreateFromDbEntity(component, this);
}
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
}
}