tbf/TestBenchFramework/BenchControl/BenchId/Component.cs

34 lines
821 B
C#
Raw Normal View History

///
/// Copyright (c) 2013-2015 Sensus Metering Systems
///
using System;
using System.Collections.Generic;
2014-12-29 23:17:45 +00:00
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
{
2014-12-29 23:17:45 +00:00
private static readonly ILog log = LogManager.GetLogger(typeof(Component));
public override string ToString() { return string.Format("BenchId({0})", Cfg.ToString(1)); }
2014-12-29 23:17:45 +00:00
readonly ComponentCfg benchIdCfg;
public int TestBenchNr { get { return benchIdCfg.TestBenchNr; } }
public Component(ComponentCfg cfg)
: base(cfg)
{
benchIdCfg = cfg;
2014-12-29 23:17:45 +00:00
log.Debug(this.ToString());
}
}
}