39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
///
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
///
|
|
using System.Collections.Generic;
|
|
using Config.Entities;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.GenericDevices
|
|
{
|
|
public interface ITestMethod : IComponent
|
|
{
|
|
/// <summary>
|
|
/// True = use result of the test with this method when evaluating the final result
|
|
/// </summary>
|
|
bool Evaluate(Test test);
|
|
|
|
/// <summary>
|
|
/// True = use result of the test with this method when publishing (printing, saving) results
|
|
/// </summary>
|
|
bool Publish(Test test);
|
|
|
|
/// <summary>
|
|
/// Check compatibility of the method with the watermeters
|
|
/// </summary>
|
|
/// <param name="meters">Type of watermeters</param>
|
|
/// <returns>true when the watermeters can be tested by this method</returns>
|
|
bool CanTest(MetersKind meters);
|
|
|
|
/// <summary>
|
|
/// Execute the test method
|
|
/// </summary>
|
|
/// <param name="test"></param>
|
|
/// <param name="outerLoopMode">false = normal eecution, true = Run the test only once and use 'outerLoopCounter'</param>
|
|
/// <param name="outerLoopCounter">External test repeats counter</param>
|
|
/// <returns>Event(s) indicating the result of execution</returns>
|
|
IList<Event> Execute(Test test, bool outerLoopMode, int outerLoopCounter);
|
|
}
|
|
}
|