/// /// Copyright (c) 2013-2015 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("BenchInfoPL({0})", Cfg.ToString(1)); } 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()); } } }