/// /// Copyright (c) 2018 Sensus Slovensko a.s. /// 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.DataContainers.BenchInfo.Extended { /// /// 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)); } readonly ComponentCfg myCfg; public string TestBenchName { get { return myCfg.TestBenchName; } } public int TestBenchId { get { return myCfg.TestBenchId; } } public string Address1 { get { return myCfg.Address1; } } public string Address2 { get { return myCfg.Address2; } } public string Address3 { get { return myCfg.Address3; } } public string Address4 { get { return myCfg.Address4; } } public string Address5 { get { return myCfg.Address5; } } public RemoteDBUse RemoteDBUse { get { return myCfg.RemoteDBUse; } } public Component() { } public Component(Generic.IComponentCfg cfg) : base(cfg) { myCfg = cfg as ComponentCfg; log.Debug(this.ToString()); } } }