/// /// Copyright (c) 2013-2016 Sensus Metering Systems /// Author: Milan Hanajík /// using System; using System.Collections.Generic; using System.Xml.Serialization; using log4net; using Config.Entities; using TBF.BenchControl; using TBF.BenchControl.Generic; namespace TBF.BenchControl.BenchInfo.Polska { /// /// Holds information identifying the test bench. /// public class Component : ComponentBase, GenericDevices.IBenchInfo { private static readonly ILog log = LogManager.GetLogger(typeof(Component)); public override string ToString() { return string.Format("BenchInfoEx({0})", Cfg.ToString(1)); } public readonly ComponentCfg BenchInfoCfg; public string TestBenchName { get { return BenchInfoCfg.TestBenchName; } } public int TestBenchId { get { return BenchInfoCfg.TestBenchId; } } public Component() { } public Component(ComponentCfg cfg) : base(cfg) { BenchInfoCfg = cfg; log.Debug(this.ToString()); } } }