using System; using System.Collections.Generic; using System.Xml.Serialization; using log4net; using TBF.Entities; using TBF.BenchControl; using TBF.BenchControl.Generic; namespace TBF.BenchControl.BenchId { /// /// Holds information identifying the test bench. /// public class Component : ComponentBase { private static readonly ILog log = LogManager.GetLogger(typeof(Component)); public override string ToString() { return string.Format("BenchId({0})", Cfg.ToString(1)); } readonly ComponentCfg benchIdCfg; public int TestBenchNr { get { return benchIdCfg.TestBenchNr; } } public Component(ComponentCfg cfg) : base(cfg) { benchIdCfg = cfg; log.Debug(this.ToString()); } } }