2015-06-02 15:59:54 +00:00
|
|
|
|
///
|
2017-03-07 17:35:39 +00:00
|
|
|
|
/// Copyright (c) 2013-2017 Sensus Metering Systems
|
2015-06-02 15:59:54 +00:00
|
|
|
|
///
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using log4net;
|
2015-12-04 16:17:20 +00:00
|
|
|
|
using Config.Entities;
|
2015-06-02 15:59:54 +00:00
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
namespace TBF.BenchControl.TestMethods.FixedStartMassCollection.Compound
|
2015-06-02 15:59:54 +00:00
|
|
|
|
{
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public class Component : ComponentBase, GenericDevices.ITestMethod
|
2015-06-02 15:59:54 +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));
|
|
|
|
|
|
}
|
2015-06-02 15:59:54 +00:00
|
|
|
|
|
2015-12-08 15:19:10 +00:00
|
|
|
|
public bool CanTest(MetersKind meters) { return meters == MetersKind.Combined; }
|
2017-12-02 16:54:38 +00:00
|
|
|
|
public bool DoTransitions() { return true; }
|
2015-06-02 15:59:54 +00:00
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public Component()
|
2015-06-29 09:14:33 +00:00
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-08-17 10:24:24 +00:00
|
|
|
|
public Component(Generic.IComponentCfg cfg)
|
2015-06-02 15:59:54 +00:00
|
|
|
|
: base(cfg)
|
|
|
|
|
|
{
|
|
|
|
|
|
log.Debug(this.ToString());
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2017-12-02 16:54:38 +00:00
|
|
|
|
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
|
2015-06-02 15:59:54 +00:00
|
|
|
|
{
|
2017-12-08 10:45:37 +00:00
|
|
|
|
return (new FixedStartMassCollectionSeq()).Execute(test, repetNr, isLastRepetition, true, null, DebugLevel);
|
2015-06-02 15:59:54 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|