2018-12-03 07:14:15 +00:00
|
|
|
|
///
|
|
|
|
|
|
/// 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;
|
|
|
|
|
|
|
2019-09-18 07:09:00 +00:00
|
|
|
|
namespace TBF.BenchControl.DataContainers.BenchInfo.iPerl
|
2018-12-03 07:14:15 +00:00
|
|
|
|
{
|
|
|
|
|
|
/// <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.iPerl({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 Side Side { get { return myCfg.Side; } }
|
|
|
|
|
|
public int MaxTestIndex { get { return myCfg.MaxTestIndex; } } /// (MaxPruefindex % 100) value when to reject water meters completely if they are NOK
|
|
|
|
|
|
|
|
|
|
|
|
public Component()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Component(Generic.IComponentCfg cfg)
|
|
|
|
|
|
: base(cfg)
|
|
|
|
|
|
{
|
|
|
|
|
|
myCfg = cfg as ComponentCfg;
|
|
|
|
|
|
log.Debug(this.ToString());
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|