2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
2015-08-01 20:21:43 +00:00
|
|
|
|
/// Author: Milan Hanajík
|
2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
using System;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
using System.Collections.Generic;
|
2014-12-29 23:17:45 +00:00
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
using log4net;
|
2015-12-04 16:17:20 +00:00
|
|
|
|
using Config.Entities;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
using TBF.BenchControl;
|
2014-12-31 12:46:33 +00:00
|
|
|
|
using TBF.BenchControl.Generic;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2015-08-01 20:21:43 +00:00
|
|
|
|
namespace TBF.BenchControl.BenchInfo.Munich
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Holds information identifying the test bench.
|
|
|
|
|
|
/// </summary>
|
2015-08-22 14:25:35 +00:00
|
|
|
|
public class Component : ComponentBase, GenericDevices.IBenchInfo
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2014-12-29 23:17:45 +00:00
|
|
|
|
private static readonly ILog log = LogManager.GetLogger(typeof(Component));
|
2015-08-01 20:21:43 +00:00
|
|
|
|
public override string ToString() { return string.Format("BenchInfo({0})", Cfg.ToString(1)); }
|
2014-12-29 23:17:45 +00:00
|
|
|
|
|
2015-08-01 20:21:43 +00:00
|
|
|
|
readonly ComponentCfg benchInfoCfg;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2016-01-02 16:53:57 +00:00
|
|
|
|
public string TestBenchName { get { return benchInfoCfg.TestBenchName; } }
|
|
|
|
|
|
public int TestBenchId { get { return benchInfoCfg.TestBenchId; } }
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2015-06-29 09:14:33 +00:00
|
|
|
|
public Component()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-08-05 12:32:36 +00:00
|
|
|
|
public Component(Generic.IComponentCfg cfg)
|
2014-07-28 07:54:35 +00:00
|
|
|
|
: base(cfg)
|
|
|
|
|
|
{
|
2016-08-05 12:32:36 +00:00
|
|
|
|
benchInfoCfg = cfg as ComponentCfg;
|
|
|
|
|
|
log.Debug(this.ToString());
|
|
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|