tbf/TestBenchFramework/BenchControl/TestMethods/FixedStartAdvanced/Single/Component.cs

36 lines
939 B
C#
Raw Normal View History

2015-10-05 08:11:59 +00:00
///
/// Copyright (c) 2016 Sensus Metering Systems
2015-10-05 08:11:59 +00:00
///
using System;
using System.Collections.Generic;
using log4net;
using Config.Entities;
2015-10-05 08:11:59 +00:00
using TBF.BenchControl;
namespace TBF.BenchControl.TestMethods.FixedStartAdvanced.Single
2015-10-05 08:11:59 +00:00
{
public class Component : ComponentBase, GenericDevices.ITestMethod
2015-10-05 08:11:59 +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)); }
public bool CanTest(MetersKind meters) { return meters == MetersKind.Single; }
public bool DoTransitions() { return true; }
2015-10-05 08:11:59 +00:00
public Component()
2015-10-05 08:11:59 +00:00
{
}
public Component(Generic.IComponentCfg cfg)
2015-10-05 08:11:59 +00:00
: base(cfg)
{
log.Debug(this.ToString());
}
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
2015-10-05 08:11:59 +00:00
{
return (new FixedStartAdvancedSeq()).Execute(test, repetNr);
2015-10-05 08:11:59 +00:00
}
}
}