33 lines
751 B
C#
33 lines
751 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;
|
|
|
|
/// Parameterless constructor
|
|
public 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}",
|
|
(string.IsNullOrEmpty(ParentName) ? "-" : ParentName),
|
|
BitPosition);
|
|
}
|
|
}
|
|
}
|