- 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
34 lines
834 B
C#
34 lines
834 B
C#
using System.IO;
|
|
using System.Xml.Serialization;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Elde.Diverter
|
|
{
|
|
public class DiverterCfg : ComponentCfgBase, IChildComponentCfg
|
|
{
|
|
public int BitPosition;
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
DiverterCfg()
|
|
{
|
|
Name = "Div";
|
|
ParentName = "CB";
|
|
BitPosition = 0;
|
|
}
|
|
|
|
public DiverterCfg(IComponentFactory factory)
|
|
: this()
|
|
{
|
|
this.Factory = factory;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}, Parent={1}, Bit={2}",
|
|
Name,
|
|
(string.IsNullOrEmpty(ParentName) ? "-" : ParentName),
|
|
BitPosition);
|
|
}
|
|
}
|
|
}
|