2015-10-05 08:11:59 +00:00
|
|
|
|
///
|
2016-08-17 10:24:24 +00:00
|
|
|
|
/// Copyright (c) 2016 Sensus Metering Systems
|
2015-10-05 08:11:59 +00:00
|
|
|
|
///
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using log4net;
|
2015-12-04 16:17:20 +00:00
|
|
|
|
using Config.Entities;
|
2015-10-05 08:11:59 +00:00
|
|
|
|
using TBF.BenchControl;
|
|
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
namespace TBF.BenchControl.TestMethods.FixedStartAdvanced.Single
|
2015-10-05 08:11:59 +00:00
|
|
|
|
{
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public class Component : ComponentBase, GenericDevices.ITestMethod
|
2015-10-05 08:11:59 +00:00
|
|
|
|
{
|
2016-08-17 10:24:24 +00:00
|
|
|
|
private static readonly ILog log = LogManager.GetLogger(typeof(Component));
|
2015-10-05 08:11:59 +00:00
|
|
|
|
public override string ToString() { return string.Format("TestMethods.FixedStartAdvanced({0})", Cfg.ToString(1)); }
|
|
|
|
|
|
|
2015-12-04 16:17:20 +00:00
|
|
|
|
public bool Evaluate(Test test) { return true; }
|
|
|
|
|
|
public bool Publish(Test test) { return true; }
|
|
|
|
|
|
public bool CanTest(MetersKind meters) { return meters == MetersKind.Single; }
|
2015-10-05 08:11:59 +00:00
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public Component()
|
2015-10-05 08:11:59 +00:00
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public Component(Generic.IComponentCfg cfg)
|
2015-10-05 08:11:59 +00:00
|
|
|
|
: base(cfg)
|
|
|
|
|
|
{
|
|
|
|
|
|
log.Debug(this.ToString());
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-12-10 10:30:57 +00:00
|
|
|
|
public IList<Event> Execute(Test test, bool outerLoopMode, int outerLoopCounter)
|
2015-10-05 08:11:59 +00:00
|
|
|
|
{
|
|
|
|
|
|
return (new FixedStartAdvancedSeq()).Execute(test);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|