33 lines
949 B
C#
33 lines
949 B
C#
using System.Collections.Generic;
|
|
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 { get; }
|
|
|
|
/// <summary>
|
|
/// True = use result of the test with this method when publishing (printing, saving) results
|
|
/// </summary>
|
|
bool Publish { get; }
|
|
|
|
/// <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(Entities.MetersKind meters);
|
|
|
|
/// <summary>
|
|
/// Execute the test method
|
|
/// </summary>
|
|
/// <param name="test"></param>
|
|
/// <returns>Event(s) indicating the result of execution</returns>
|
|
IList<Event> Execute(Entities.Test test);
|
|
}
|
|
}
|