- all components, componentCfg-s and parameter providers use base classes - less boilerplate code, simpler access to test/procedure parameters from code - CreateTestParams(test), CreateProcedureParams(procedure) methods added - TestBenchSim class is made static, it is not inheritted by any device anymore
36 lines
887 B
C#
36 lines
887 B
C#
using System;
|
|
using System.Xml.Serialization;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.BenchId
|
|
{
|
|
/// <summary>
|
|
/// Holds information identifying the test bench - serializable configuration.
|
|
/// </summary>
|
|
public class ComponentCfg : ComponentCfgBase, Generic.IComponentCfg
|
|
{
|
|
public int TestBenchNr;
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
ComponentCfg()
|
|
{
|
|
Name = "Bench-ID";
|
|
ParentName = string.Empty;
|
|
TestBenchNr = 1;
|
|
}
|
|
|
|
public ComponentCfg(IComponentFactory factory)
|
|
: this()
|
|
{
|
|
this.Factory = factory;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}, TestBenchNr={1}",
|
|
Name,
|
|
TestBenchNr);
|
|
}
|
|
}
|
|
}
|