2016-08-04 13:46:17 +00:00
|
|
|
|
///
|
2016-08-17 10:24:24 +00:00
|
|
|
|
/// Copyright (c) 2013-2016 Sensus Metering Systems
|
2016-08-04 13:46:17 +00:00
|
|
|
|
///
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using log4net;
|
|
|
|
|
|
using Config.Entities;
|
|
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection.HeatMeters
|
2016-08-04 13:46:17 +00:00
|
|
|
|
{
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public class Component : ComponentBase, GenericDevices.ITestMethod
|
2016-08-04 13:46:17 +00:00
|
|
|
|
{
|
2016-08-17 10:24:24 +00:00
|
|
|
|
private static readonly ILog log = LogManager.GetLogger(typeof(Component));
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
|
{
|
|
|
|
|
|
return string.Format("{0}({1})", this.GetType().Namespace.Substring(17), Cfg.ToString(1));
|
|
|
|
|
|
}
|
2016-08-04 13:46:17 +00:00
|
|
|
|
|
|
|
|
|
|
public bool CanTest(MetersKind meters) { return meters == MetersKind.HeatMeter; }
|
2017-12-02 16:54:38 +00:00
|
|
|
|
public bool DoTransitions() { return true; }
|
2016-08-04 13:46:17 +00:00
|
|
|
|
|
2017-07-25 13:10:06 +00:00
|
|
|
|
readonly TestMethodCfg testMethodCfg;
|
|
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public Component()
|
2016-08-04 13:46:17 +00:00
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public Component(Generic.IComponentCfg cfg)
|
2016-08-04 13:46:17 +00:00
|
|
|
|
: base(cfg)
|
2016-08-17 10:24:24 +00:00
|
|
|
|
{
|
2016-08-05 12:32:36 +00:00
|
|
|
|
testMethodCfg = cfg as TestMethodCfg;
|
2016-08-04 13:46:17 +00:00
|
|
|
|
log.Debug(this.ToString());
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2017-12-02 16:54:38 +00:00
|
|
|
|
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
|
2016-08-04 13:46:17 +00:00
|
|
|
|
{
|
2017-12-02 16:54:38 +00:00
|
|
|
|
return (new FlyingStartMassCollectionSeq()).Execute(test, repetNr, isLastRepetition, null, testMethodCfg.TestParams, DebugLevel);
|
2016-08-04 13:46:17 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|