34 lines
821 B
C#
34 lines
821 B
C#
///
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
///
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Xml.Serialization;
|
|
using log4net;
|
|
using TBF.Entities;
|
|
using TBF.BenchControl;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.BenchId
|
|
{
|
|
/// <summary>
|
|
/// Holds information identifying the test bench.
|
|
/// </summary>
|
|
public class Component : ComponentBase
|
|
{
|
|
private static readonly ILog log = LogManager.GetLogger(typeof(Component));
|
|
public override string ToString() { return string.Format("BenchId({0})", Cfg.ToString(1)); }
|
|
|
|
readonly ComponentCfg benchIdCfg;
|
|
|
|
public int TestBenchNr { get { return benchIdCfg.TestBenchNr; } }
|
|
|
|
public Component(ComponentCfg cfg)
|
|
: base(cfg)
|
|
{
|
|
benchIdCfg = cfg;
|
|
log.Debug(this.ToString());
|
|
}
|
|
}
|
|
}
|