Initial commit almost identical to SVN-repo rev.340

This commit is contained in:
Milan Hanajik
2014-07-28 09:56:40 +02:00
commit 175a92f633
575 changed files with 186534 additions and 0 deletions
@@ -0,0 +1,46 @@
using TBF.BenchControl.Generic;
namespace TBF.BenchControl
{
public class ComponentBase : IComponent
{
Generic.IComponentCfg cfg;
public Generic.IComponentCfg Cfg { get { return cfg; } }
/// Constructor
public ComponentBase(Generic.IComponentCfg cfg)
{
this.cfg = cfg;
}
public string Name { get { return Cfg.Name; } }
/// <summary>
/// Reference to an object with procedure parameters
/// </summary>
public IParamsProvider ProcedureParams;
///
public void GetProcedureParams(TBF.Entities.Procedure procedure)
{
if (Cfg.Factory.HasProcedureParams)
{
ProcedureParams = TbfComponents.GetProcedureParams(this, procedure);
}
}
/// <summary>
/// Reference to an object with test parameters
/// </summary>
public IParamsProvider TestParams;
///
public void GetTestParams(TBF.Entities.Test test)
{
if (Cfg.Factory.HasTestParams)
{
TestParams = TbfComponents.GetTestParams(this, test);
}
}
}
}