40 lines
1002 B
C#
40 lines
1002 B
C#
///
|
|
/// 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.Munich
|
|
{
|
|
/// <summary>
|
|
/// Holds information identifying the test bench.
|
|
/// </summary>
|
|
public class Component : ComponentBase, GenericDevices.IBenchInfo
|
|
{
|
|
private static readonly ILog log = LogManager.GetLogger(typeof(Component));
|
|
public override string ToString() { return string.Format("BenchInfo({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());
|
|
}
|
|
}
|
|
}
|