tbf/TestBenchFramework/BenchControl/TestMethods/Adjustment/TestMethod.cs

36 lines
947 B
C#
Raw Normal View History

///
/// Copyright (c) 2013-2015 Sensus Metering Systems
///
using System;
2015-01-28 17:17:50 +00:00
using System.Collections.Generic;
using log4net;
using Config.Entities;
2015-01-28 17:17:50 +00:00
using TBF.BenchControl;
namespace TBF.BenchControl.TestMethods.Adjustment
{
public class TestMethod : ComponentBase, GenericDevices.ITestMethod
2015-01-28 17:17:50 +00:00
{
private static readonly ILog log = LogManager.GetLogger(typeof(TestMethod));
public override string ToString() { return string.Format("TestMethods.Adjustment({0})", Cfg.ToString(1)); }
public bool CanTest(MetersKind meters) { return meters == MetersKind.Single; }
public bool DoTransitions() { return true; }
public TestMethod()
{
}
public TestMethod(Generic.IComponentCfg cfg)
2015-01-28 17:17:50 +00:00
: base(cfg)
{
log.Debug(this.ToString());
}
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
2015-01-28 17:17:50 +00:00
{
return (new AdjustmentSeq()).Execute(test, repetNr, isLastRepetition, DebugLevel);
2015-01-28 17:17:50 +00:00
}
}
}