2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
|
|
|
|
///
|
|
|
|
|
|
using System.Collections.Generic;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
namespace TBF.BenchControl.Generic
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IComponentCfg
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Unique component # (0 .. nr.of components-1)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
int ItemNr { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Component name
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Reference to the component factory (it is a singleton)
|
|
|
|
|
|
/// </summary>
|
2014-12-29 15:00:27 +00:00
|
|
|
|
IComponentFactory Factory { get; set; }
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Component class / component type name
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
string ParentName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Debug level, 0 = debugging off
|
|
|
|
|
|
/// </summary>
|
2015-12-04 16:17:20 +00:00
|
|
|
|
Config.Entities.DebugMode DebugLevel { get; set; }
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Log level, 0 = logging off
|
|
|
|
|
|
/// </summary>
|
2015-12-04 16:17:20 +00:00
|
|
|
|
Config.Entities.LogLevel LogLevel { get; set; }
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Measurement correction values
|
|
|
|
|
|
/// </summary>
|
2015-12-04 16:17:20 +00:00
|
|
|
|
IList<Config.Entities.MeasurementCorrection> Corrections { get; set; }
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2014-12-31 12:46:33 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Creates a new database entity 'Component' from the parameters
|
|
|
|
|
|
/// </summary>
|
2015-12-04 16:17:20 +00:00
|
|
|
|
Config.Entities.Component CreateDbEntity();
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2015-01-02 18:14:19 +00:00
|
|
|
|
///
|
|
|
|
|
|
/// Object instance factory-like methods
|
|
|
|
|
|
///
|
|
|
|
|
|
IComponent GetComponent(IList<IComponent> components);
|
|
|
|
|
|
IComponentCfgCtrl GetControl();
|
|
|
|
|
|
|
2014-12-31 12:46:33 +00:00
|
|
|
|
///
|
|
|
|
|
|
/// Procedure parameters provider support
|
|
|
|
|
|
///
|
|
|
|
|
|
IParamsProvider GetProcedureParams();
|
2015-12-04 16:17:20 +00:00
|
|
|
|
void UpdateProcedureParams(Config.Entities.Procedure procedure);
|
|
|
|
|
|
IParamsProvider CreateProcedureParams(Config.Entities.Procedure procedure);
|
2014-12-31 12:46:33 +00:00
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
/// Test parameters provider support
|
|
|
|
|
|
///
|
|
|
|
|
|
IParamsProvider GetTestParams();
|
2015-12-04 16:17:20 +00:00
|
|
|
|
void UpdateTestParams(Config.Entities.Test test);
|
|
|
|
|
|
IParamsProvider CreateTestParams(Config.Entities.Test test);
|
2014-12-31 12:46:33 +00:00
|
|
|
|
|
2014-07-28 07:54:35 +00:00
|
|
|
|
string ToString(int i);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|